Hi, Thanks again. I'm sure I'm pushing my luck for asking, but ... I'm not asking for the solution, but would you be so kind to give the major steps involved?
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? Am I totally in the wrong direction? Cheers. On Jan 16, 2008 4:18 PM, Leonard Rosenthol <[EMAIL PROTECTED]> wrote: > Then you can certainly accomplish this, but you will (as noted) need > to learn about PDF internals as well as iText low level functionality > in order to make it happen. > > Leonard > > On Jan 16, 2008, at 7:19 AM, Luis Mineiro wrote: > > > Hi, > > > > Thanks for your answer. Straight to the point, I need to add a single > > raster image and a single line of text. > > Both need to be removed later. > > > > On Jan 16, 2008 3:14 PM, Leonard Rosenthol <[EMAIL PROTECTED]> > > wrote: > >> Depends on what the "object" is and how much you are willing to work > >> in the bowels of iText and PDF... > >> > >> For example, if you were adding a single raster image - it would be > >> relatively straight-forward, though still require you to do low level > >> work. On the other hand, adding text or vector data would be more > >> complex. > >> > >> > > ------------------------------------------------------------------------- > > 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/ > ------------------------------------------------------------------------- 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/
