[pdftex] pdftex-pdfcrypt update

Hans Hagen pragma at wxs.nl
Thu Mar 29 12:27:56 CEST 2001


At 10:42 AM 3/29/01 +0200, Ricardo Sanchez Carmenes wrote:

>For example, using Oberdiek's testobj.tex sample, where would you
>suggest to switch on/off encryption ?
>
>\pdfcompresslevel=0
>\pdfcrypt{owner = "test" user = "test" none print}
>\nopagenumbers
>\hbox{}
>\immediate\pdfobj{%
>  <<%
>    /Type /DummyTest%
>    /TestString (FOO BAR)%
>    /Length 11%
>  >>%
>  stream%
>  HELLO WORLDendstream%
>}

Well, i would not use such construct, even if it's permitted. The (proper)
alternative is: 

\immediate\pdfobj stream attr
  {/Type /DummyTest /TestString (FOO BAR)}
  {HELLO WORLD}

so there a local \pdfencyption=0 would inhibit stream scrambling. 

Hans

-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma at wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------




More information about the pdftex mailing list