[pdftex] ambiguous \pdfpageref

Alexander Grahn A.Grahn at fz-rossendorf.de
Tue Dec 7 10:30:34 CET 2004


Hello,

within a latex macro package I need access to the PDF page object
number. It can be accessed using the command
    \pdfpageref\value{page}\space 0 R
But I run into problems if a roman numbered page `i' is followed by
an arabic numbered page `1'.

In both cases `\value{page}' yields `1' and consequently `\pdfpageref'
yields the same PDF page object number, although there are two physically
distinct pages.

How can I solve this problem?

Example:

\documentclass{article}
\begin{document}
\pagenumbering{roman}
Page object number: \pdfpageref\value{page}\\
\newpage
\pagenumbering{arabic}
Page object number: \pdfpageref\value{page}\\
\end{document}

Alexander

-- 
m a i l t o : A . G r a h n @ f z - r o s s e n d o r f . d e



More information about the pdftex mailing list