The reason you're files are shrinking so much has to do with the type of
compression applied to the images.

In your original file, everything (images, content, etc) are compressed with
FlateDecode (zip).  In the modified files, they use DCTDecode (jpeg).

iText supports writing out JPEG images **that were read in as a JPEG**
(image.type() == Image.JPEG).  It supports CCITTFaxDecode for images that were
built with raw image data (image.isImgRaw() == true && image.getBpc() > 0xFF).

It looks like everything else is written out as FlateDecode... which, as you may
have noticed, is sub-optimal.  :/

So how are you adding the images?

--Mark Storer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to