[NTG-pdftex] Re: Optimizing the generated pdf

Hans Hagen pragma at wxs.nl
Thu Nov 17 13:03:29 CET 2005


Martin � wrote:

>On 2005-11-17 10:46:51 +0100, Martin Schr�der wrote:
>  
>
>>Btw: Is there a tool that compresses a pdf by replacing identical
>>objects with references?
>>    
>>
>
>pdfTeX could do this by itself: Store the md5 of the shortest n
>objects (e.g. n = 1024) smaller then x bytes (e.g. x = 1024,
>longer objects will typically be unique) and replace new
>identical objects with references to the already existing ones.
>
>This would e.g. condense all the 
>obj <</S /GoTo /D [n 0 R /Fit]>> endobj
>in the pdfTeX manual. :-)
>
>  
>

such a feature makes sense indeed; maybe even configurable:

\pdfshareobjsize=1024 % with 0 meaning no checking done

(that way we can experiment)

Hans


More information about the ntg-pdftex mailing list