[pdftex] embedfile and links to children
Victor Ivrii
vivrii at gmail.com
Sun Nov 5 10:39:13 CET 2006
On 11/4/06, Heiko Oberdiek <oberdiek at uni-freiburg.de> wrote:
> On Sat, Nov 04, 2006 at 08:28:52AM +0100, Victor Ivrii wrote:
> Attached files are identified by their file attachment annotations
> and are identified
> * by pair of absolute page number and number of the annotation
> in the page (number of entry in /Annot) or
> * by pair of absolute page number and name of the annotation
> (/NM entry).
Trying to use /NM but while two first links (to attached yellow.pdf
using /A scheme and to embedded blue.pdf) work, the last one fails.
What I am doing wrong?
Thank you
Victor
\documentclass{article}
\usepackage{attachfile2}
\usepackage{zref-abspage}
\usepackage{embedfile}
\usepackage{hyperref}
\begin{document}
\embedfile{blue.pdf}
\attachfile[annotname={yellow}]{yellow.pdf} % file annotation is on page 1
\newpage
\leavevmode %%% NOTHING BEFORE NEXT LINE
\pdfstartlink user{%
/Subtype/Link
/A<<
/S/GoToE
/D [2 /FitH 1000]
/T<<
/R/C
/P 0
/A 0
>>
>>
}\relax
Yellow Page 3\pdfendlink
\vfill
Some text
\vfill
\leavevmode
\pdfstartlink user{%
/Subtype/Link
/A<<
/S/GoToE
/D [1 /FitH 1000]
/T<<
/R/C
/N <\pdfescapehex{blue.pdf}>
>>
>>
}\relax
Blue Page 2\pdfendlink
\newpage
\leavevmode %%% NOTHING BEFORE NEXT LINE
\pdfstartlink user{%
/Subtype/Link
/A<<
/S/GoToE
/D [2 /FitH 1000]
/T<<
/R/C
/P 0
/NM (yellow)
>>
>>
}\relax
Yellow Page 3\pdfendlink
\end{document}
--
========================
Victor Ivrii, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii
More information about the pdftex
mailing list