As I understand it, iText itself does not compress images, due to 'potential' 
legal implications.  Whether these are warranted or not, you will have to use a 
third party product/package to compress the images.  This can be built into 
your code but YOU need to code it to use these products. (As whichever you use 
is upto you).

Basically you will need to process the image BEFORE adding it to the pdf 
document.

To be clear, I don't mean manually process the image(s), I mean use a third 
party package (just like iText is), and plug it into your current software as 
you did with iText, but this time, to process the images before you put them on 
the page.

-----Original Message-----
From: scriptoid [mailto:[email protected]]
Sent: 31 March 2010 11:52
To: [email protected]
Subject: Re: [iText-questions] iText compression modes



Hello Bruno

We are need to be able to compress the PDF files as much as we can to store
our clients' PDF files.

It is VITAL for us to do that and we would like to keep us using iText.

I've compressed some jPEG (10 files aprox. 3.3Mb in total)  files using 
ImageMagic
[convert *.jpg -alpha off -monochrome -compress Zip -quality 100 -units
PixelsPerInch -density 600  image_deflate.pdf]
and the generated PDF was 700kB while using iText was 3.6Mb.

As the storage is a BIG concern for us we are trying to find a solution. 

I personally dug into your book for compression tips but even with
PdfStamper & setFullCompression the file was still 3.3Mb.

ANY help or suggestion will be much appreciated.





Bruno Lowagie (iText) wrote:
> 
> Bruno Lowagie wrote:
>> How much does that matter for your customer?
> 
> I've just checked. Introducing the concept of compression
> level would involve changing about 20 classes.
> 
> It would be possible to set the compression level:
> - on the writer level (mostly page content streams)
> - some Image streams
> - font streams
> - embedded file streams
> 
> I'll see if I have the time to do this.
> While I'm at it, I could also look at the encryption
> of embedded file stream.
> 
> Is there anybody I can invoice for this work?
> Tobias' customer? Tony's customer?
> br,
> 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
> [email protected]
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/iText-compression-modes-tp18299626p28094161.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Land Registry's House Price Index is now live. www.landregistry.gov.uk

If you have received this e-mail and it was not intended for you, please let us 
know, and then delete it. Please treat our communications in confidence, as you 
would expect us to treat yours. Land Registry checks all mail and attachments 
for known viruses, however, you are advised that you open any attachments at 
your own risk.



The original of this email was scanned for viruses by the Government Secure 
Intranet virus scanning service supplied by Cable&Wireless in partnership with 
MessageLabs. (CCTM Certificate Number 2009/09/0052.) On leaving the GSi this 
email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or 
recorded for legal purposes.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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