[pdftex] pdftex-pdfcrypt: too late use of \pdfcrypt

Heiko Oberdiek oberdiek at ruf.uni-freiburg.de
Tue Apr 17 22:33:16 CEST 2001


Hello,

next problem I found:

%%% cut %%% testlate.tex %%% cut %%%
\pdfcompresslevel=0
\nopagenumbers
\font\f=ptmr \f
\shipout\hbox{First Page}
\immediate\pdfobj{<< /Type /Foo /String (Hello World)>>}
\pdfcrypt{
  owner = "Donald"
  user = "Knuth"
  none
  print
}
\immediate\pdfobj{<< /Type /Foo /String (Hello World)>>}
\shipout\hbox{Second Page}
\bye
%%% cut %%% testlate.tex %%% cut %%%

The first page and first string "Hello World" are not
encrypted, but the second page and second string.

I do not know, what is the best policy. Perhaps
* Ignoring, if \pdfcrypt is called too late.
* Ignoring with warning
* Ignoring with error message
* ...

Because of this question I have posted it to the list, too.

Best regards
  Heiko <oberdiek at ruf.uni-freiburg.de>



More information about the pdftex mailing list