Op 20/04/2011 5:23, vikasgupta schreef: > I have problem while editing existing PDF file that the text that I have > added in existing PDF file is not getting visible but search-able. This > existing PDF file is also getting generated from iText. I am using > "itext-1.5.2.jar". > > Please find below my code snippet. Please note I am not getting any > exception/errors. My only problem is that the text that I am adding is not > visible even after using color/font etc. I have tried same code to generate > new PDF file to add text; it works fine and text is visible too.
This is yet another question that could be answered with only two words: "Elementary logic!" You add text, and AFTER you've added text, you COVER it with other content. It surprises me you're surprised you don't see the text. Furthermore your code is... not optimal. You have an existing PDF document to which you want to add content. If you had read the documentation, you'd have know you should use PdfStamper. It beats me why you are using Document/PdfWriter. > Please respond to me at your earliest. Thanks allot for your help in > advance. Please read the documentation before you start using iText. Start with http://affiliate.manning.com/idevaffiliate.php?id=223_212 Under Resources, there's a column "Downloads". Download Chapter 6 (you can do so for free) and READ IT!!! ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ 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