The general solution is Hard. You have to determine which resources
(XObjects, fonts, and so forth) no longer falls within the page bounds by
parsing the page's content stream and calculating the bounding box of each
use of each resource.
Your specific case may be Very Easy, but it's difficult to know without
seeing your PDF[s]. *If* your slide XObjects are using a consistent naming
scheme, you should be able to open up the page's resource dictionary and
remove the one you want without resorting to rooting through the page's
content stream.
Once you've removed the page's resource reference to the slide's XObject in
the ***PdfReader***, you call it's removeUnusedObjects() method, and send it
off to your PdfStamper to be written to disk.
--Mark Storer
Professional Geek
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/