Reducing PDF size.

View: New views
2 Messages — Rating Filter:   Alert me  

Reducing PDF size.

by GaneshPrakhya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bruno,

I am using coordinate system to reduce the file size for putting text into acro fields. (I followed your BatchFill.java). Is there any way the same thing we can do for images? Because I am adding 5 images to my 5 page document, but the size of the PDF is bigger. How can optimize it?


Thaks & Regards,
Ganesh.

Re: Reducing PDF size.

by Bruno Lowagie (iText) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

GaneshPrakhya wrote:

>Hi Bruno,
>
>I am using coordinate system to reduce the file size for putting text into
>acro fields. (I followed your BatchFill.java). Is there any way the same
>thing we can do for images? Because I am adding 5 images to my 5 page
>document, but the size of the PDF is bigger. How can optimize it?
>  
>
If you have 5 images of 5KB, a PDF containing these images
will always be > 5 x 5 KB, due to some overhead.
Also iText doesn't compress images. You have to compress
the images before adding them to the PDF.
best regards,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions