Before you close the stamper/reader - add:
reader.removeAnnotations();
reader.removeUnusedObjects();
stamper.setFullCompression();
Sean
tim clark-10 wrote:
>Hi All
>I have been using the itext lib in a app for a year or so typically to
>merge
>db content in to pdf form field documents
>crea
Is there any way to reduce the size of these files? The file I'm
generating winds up being anywhere from 250 to 300K in size. I can open
the file in Acrobat, and select Optimize, and it shrinks it to ~32K. Does
iText have a way to do this that I'm missing? I've set
writer.setFullCompression