[pdftex] pdftex-pdfcrypt update

Heiko Oberdiek oberdiek at ruf.uni-freiburg.de
Thu Mar 29 14:18:40 CEST 2001


At 11:27 29.03.2001 +0200, Hans Hagen wrote:
>>\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}

I did not use this syntax in thumbpdf, but the first
form, because of:

* Space: pdfTeX inserts a lot of spaces, that are not needed,
  writing the stream directly can be done more compact.
* Compression: compression factor can be set independent
  for the thumbnails.
* Speed: pdfTeX does not need to compress the object stream.

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



More information about the pdftex mailing list