Jeremias Maerki wrote:
Given the source code, this should actually work with PNGs, too, because
the image cache is able to release memory through the use of a
WeakHashMap. The PDFRenderer signals the image cache immediately that it
doesn't need the reference to the image anymore when it has embedded the
image in the PDF. But it seems that somewhere along the road something's
still going wrong. Nice task for filling a boring, rainy Sunday.... :-)

Last time I checked, there was a pointer from the PDF XObject
to the raw image data in the cache, and the XObject was held
until the object dictionary was written, after all the content
from the FO. I.e. no chance to release the image data until
basically the whole PDF was complete (font embedding might
have come afterwards, I didn't check). I didn't track changes
to this code, have there been changes in this area?

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to