Op 26/04/2011 8:25, Naresh Chaurasia schreef: > I had been given a task of doing text replacement in pdf files
Stop right there. PDF is not a format for editing. Ask the original source that was used to create the PDF, change that source, create a new PDF. If the PDF is a tagged PDF, you could convert the PDF to XML, change the XML and then create a new PDF from that XML as is done in the second edition of the book (chapter 15, the Moby Dick example), but this is a dead end too: the XML doesn't know anything about the style of the content. If what you're asking for were possible, there would already be a product for it. Do you know of any Adobe product that can do this? If not, don't bother to start coding. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ 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