[pdftex] limitation in \pdfcatalog

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Jan 20 03:38:12 CET 2003


On Sun, Jan 19, 2003 at 06:59:25PM +0100, Andreas Matthias wrote:

> Andreas Matthias wrote:
> 
> > There is an unlucky limitation in \pdfcatalog, which just allows to
> > specify /either/ `user openactions' /or/ `goto openactions' in
> > \pdfcatalog but /not both/.
> 
> This seems to be a restriction in the PDF Specification.
> Sorry for the noise.

It's no noise, because PDF 1.2 knows the /Next entry in
action dictionaries for other actions.

Small example with dirty trick because of lacking support in pdfTeX:

\immediate\pdfobj{<</S/Launch/F(/usr/bin/xterm)>>}
\edef\LaunchObj{\the\pdflastobj}
\pdfcatalog{}
   openaction
   goto page 2{/Fit]/Next \LaunchObj\space 0 R/Dummy[}

First page
\vfill\break
Second page
\bye

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>



More information about the pdftex mailing list