[pdftex] limitation in \pdfcatalog

Andreas Matthias amat at kabsi.at
Sun Jun 1 17:13:37 CEST 2003

There is an unlucky limitation in \pdfcatalog, which just allows to
specify /either/ `user openactions' /or/ `goto openactions' in
\pdfcatalog but /not both/.

Therefore it is not possible with current pdftex versions to
open a PDF document at a predetermined page /and/ to trigger
a JavaScript action at the same time.

Can this limitation be bypassed in future pdftex versions?
Would you put it on the TODO list?

Here is an example to show how useful it could be to mix
several openactions.

\pdfobj stream {%
  var d = new Date();
  var d1 = util.scand("mm/dd/yy", "1/17/03");
  if((d1.valueOf() - d.valueOf()) < 0){
     app.alert("Document expired! Please get a new version from Joe");

   user {<< /S /JavaScript /JS \ExpWarnObj\space 0 R >>}
   goto page 2 {/Fit} 


More information about the pdftex mailing list