[pdftex] \pdfannot example?
John Martin
jwrmartin at dsgt.demon.co.uk
Thu Jan 18 15:48:22 CET 2001
Many thanks for this. I traced my problem and it is too embarrassing too mention publicly {almost}. The font I use in my text editor has {} looking a lot like (). It was that simple. Your code is neater than what I'm using; I assume that the \pdfstringdef makes a legal pdf string?
John
|-----Original Message-----
|From: pdftex-admin at tug.org [mailto:pdftex-admin at tug.org]On Behalf Of
|Barney Dalton
|Sent: 17 January 2000 14:53
|To: John Martin
|Cc: Pdftex at Tug. Org
|Subject: Re: [pdftex] \pdfannot example?
|
|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.
|
|
|\makeatletter
|\newcommand{\annotate}[2][]{%
| \pdfstringdef\x at title{#1}%
| \edef\r{\string\r}%
| \pdfstringdef\x at contents{#2}%
| \pdfannot
| width \linewidth
| height 3\baselineskip
| depth 0pt
| {
| /Subtype /Text
| /T (\x at title)
| /Contents (\x at contents)
| }%
| }
|\makeatother
|_______________________________________________
|pdftex mailing list
|pdftex at tug.org
|http://tug.org/mailman/listinfo/pdftex
|
More information about the pdftex
mailing list