Hi,

i tried to do the following two operations on a pdf:

stamper.setFormFlattening(true);
stamper.getReader().removeUnusedObjects();
stamper.close();

However when i opened the result I still found several unreferenced pdf
objects.
If I load the PDF again into a fresh stamper object and call

stamper.getReader().removeUnusedObjects();
stamper.close();

then (finally) all unreferenced pdf objects are removed.
Is it possible to do both ops on the same stamper?
Creating a new stamper means creating a memory copy of the file which i am
trying to avoid...

Thanks
TvT
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to