[pdftex] scaling pdfannot's using scalebox
Alexander Grahn
A.Grahn at fz-rossendorf.de
Fri Aug 27 12:12:15 CEST 2004
Hello,
pdf annotations, such as links, are not properly scaled by the scalebox
command from the graphicx package, if the source is fed through pdfLaTeX.
I'm not sure if this is pdfLaTeX's fault or that of graphicx's pdftex
driver, since everything is ok with latex + dvips. The same applies to
links and crossrefs generated by hyperref.
Alexander
Try the following snippet, once using latex + dvips and once pdflatex:
\documentclass{article}
\ifx\pdfoutput\undefined
\usepackage[pdfmark]{hyperref} %for \pdfmark
\usepackage[dvips]{graphicx} %for \scalebox
\else
\usepackage[pdftex]{graphicx}
\fi
\begin{document}
\setbox0=\hbox{Hello World!}
\ifx\pdfoutput\undefined
\scalebox{3}{%
\pdfmark[\copy0]{%
pdfmark=/ANN,
Subtype=/Link
}%
}
\else
\scalebox{3}{%
\copy0%
\pdfannot width \wd0 height \ht0 depth \dp0 {%
/Subtype /Link
}%
}
\fi
\end{document}
More information about the pdftex
mailing list