On 11/11/2025 4:50 PM, Ulrike Fischer wrote:
If I compile this example with luatex

\immediate\pdfextension obj {<</before/before>>}
\immediate\pdfextension obj uncompressed {<</meta/meta>>}
\immediate\pdfextension obj {<</after/after>>}
aaa
\bye

then the PDF contains various uncompressed objects that are not
present if I do not use the uncompressed object, e.g. the object
written after it, but also various font objects and the catalog etc:

I suppose that you mean object compression as objects themselves don't get compressed, only streamdata is (which in the case of objcompression contains objects).

So I had to adapt the test to:

\pdfminorversion     7
\pdfobjcompresslevel 3
\pdfcompresslevel    3

\immediate\pdfextension obj                          {<</crap1/crap1>>}
\immediate\pdfextension obj uncompressed             {<</crap2/crap2>>}
\immediate\pdfextension obj                          {<</crap3/crap3>>}
\immediate\pdfextension obj stream attr {/crap1/crap1} {crap stream data 1} \immediate\pdfextension obj uncompressed stream attr {/crap2/crap2} {crap stream data 2} \immediate\pdfextension obj stream attr {/crap3/crap3} {crap stream data 3}

done

\end

3 0 obj
<</meta/meta>>
endobj

4 0 obj
<</after/after>>

How can one stop that? Or alternatively how can one write one
uncompressed object without affecting the compression of the other
objects?

I have a fix that I'll to Luigi later this week(end).

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to