[pdftex] pdftex-pdfcrypt update
Hans Hagen
pragma at wxs.nl
Thu Mar 29 16:04:01 CEST 2001
At 01:18 PM 3/29/01 +0100, Heiko Oberdiek wrote:
>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.
there are some rule with regards to stream/endstream placement
also, the overhead is minimal compared to teh already large overhead of any
object / annot (or tex overhead in general since tex does kerning)
>* Compression: compression factor can be set independent
> for the thumbnails.
that can still be done this way
>* Speed: pdfTeX does not need to compress the object stream.
neglectable compared to macro expansion -)
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