[pdftex] \pdfannot example?

Barney Dalton barney at daltons.net
Mon Jan 17 14:53:24 CET 2000

John Martin wrote:
> I am running pdftex 0.14f with hyperref, etc, running well and wish to insert a comment/text annotation of the kind shown in the example file for pdftex. I have copied the code there using \pdfannot, and I have tried inserting an annotation using \pdfobject but can get neither to work. I am using Adobe Acrobat Reader 4.05 and doing the whole lot on WinNT. Ideally, I would like to be able to put an annotation next to a graphic, say, with the copyright information contained within it. Has anyone done this? If so, could you give me an example?

This is what I do (takes two arguments title, and text), can't quite
remember how it works or where I got it from.

  \pdfstringdef\x at title{#1}%
  \pdfstringdef\x at contents{#2}%
  width \linewidth
  height 3\baselineskip
  depth 0pt
    /Subtype /Text
    /T (\x at title)
    /Contents (\x at contents)

More information about the pdftex mailing list