I am learning and got your point: PdfWriter Generates PDF documents from scratch. Can import pages from other PDF documents. The major downside is that all interactive features of the imported page (annotations, bookmarks, fields, and so forth) are lost in the process.
PdfStamper: Manipulates one (and only one) PDF document. Can be used to add content at absolute positions, to add extra pages, or to fill out fields. All interactive features are preserved, except when you explicitly remove them (for instance, by flattening a form). public static void stampPdfStamper(String src, String dest, String name, String dateTime) throws IOException, DocumentException { Font FONT = new Font(FontFamily.HELVETICA, 32, Font.BOLD); PdfReader reader = new PdfReader(new FileInputStream(src)); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(src),'\0'); for(int i = 1; i <= reader.getNumberOfPages(); i++) { PdfContentByte canvas = stamper.getOverContent(i); ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT, new Phrase("Esigned Document By " + name + " @ " + dateTime, FONT), 0, 0, 0); } stamper.close(); } Can you give me some pointers or reference on how to remove using xobject and content stream ? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Remove-content-added-to-a-existing-pdf-tp4655443p4655463.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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