Luis Mineiro wrote:
I'm thinking (as you said low level) that I'll need to use some iText class that gives me the byte streams for each page or all the pages, try to locate the byte pattern for the image I inserted, the same for the line of text, remove those bytes from the byte stream, somehow update the iText class with that new byte stream, maybe call removeUnusedObjects() and close() a PdfStamper object, getting a new PDF without those objects?
If you add the extra content with iText, the extra content stream will be in a so-called Form XObject. You'll find a reference to that object in the page dictionary. You'll need to inspect that page dictionary and remove all references to the Form XObject you added. br, Bruno
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
