I went ahead and implemented methods in the PdfGraphics2D class to allow me to dynamically enable and disable the feature for converting images to jpeg format. This approach works well for my specific application. Just to give you some perspective, for the document I am using as a test case, without enabling the feature to convert images to jpeg format the PDF produced by iText is approximately 1.33GB in size. Using my patch that allows me to dynamically enable and disable the feature on an image-by-image basis, the size of the PDF is reduced to approximately 232KB, which is consistent with the size of the PDF produced by Acrobat Distiller.
I've also been looking at the code to evaluate the "better solution", which involves changing the drawImage handling. The change is not quite as involved as I had originally expected. I'll try to find time on Sunday to work on the drawImage handling approach and let you know what kind of results I obtain. Steve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
