This looks like a lot of work for little pratical result. Did anyone benchmarked the eventual compression gains/speed loss with these changes?
Paulo ----- Original Message ----- From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <itext-questions@lists.sourceforge.net> Sent: Sunday, July 06, 2008 4:48 PM Subject: [iText-questions] zlib compression levels > Hello, > > I thought it would take changes in about 20 iText classes to implement > zlib compression levels. I've spent a sunny Sunday afternoon writing > some code and I ended up by changing 26 classes... > > If people want to change the compression level, they usually want > to differentiate between the types of content, so I decided to > provide different places where you can change the compression level: > > - PdfWriter: the content streams of the pages, JS actions,... > - Image: some images are compressed with iText, you can now define > the level of compression. > - BaseFont: you can define the compression level for the stream > containing the font program. > > Still to do: allow people to fine tune the compression level for > embedded files. For the moment, some files are compressed using > the best compression (9); others using the compression defined > in PdfWriter. I need some extra time to do this. > > I've tested the functionality and... I'm not convinced that my > changes made sense, but now your customer doesn't have any excuse > anymore to use another PDF library ;-) > > best regards, > Bruno ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar