Hi,
I was trying to replace the text using pdfContentEditor and also with TextFragmentAbsorber in the existing pdf file.
After replacing the text, i could see only few chars displayed(i.e. many characters are missing) in the updated pdf file.
Please let me know if anything missing during the replace text.
below is the code snippet am using for this.
com.aspose.pdf.facades.PdfContentEditor pdfContentEditor = new com.aspose.pdf.facades.PdfContentEditor();
pdfContentEditor.bindPdf(doc);
pdfContentEditor.replaceText("#UPPER LETTERS1#",1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
pdfContentEditor.replaceText("#lower letters2#",1, "abcdefghijklmnopqrstuvwxyz");
pdfContentEditor.save(outFile);
Note: When I copy the text from pdf, and paste in any editor, am able to see all characters.
Thanks,
Shivaji
I was trying to replace the text using pdfContentEditor and also with TextFragmentAbsorber in the existing pdf file.
After replacing the text, i could see only few chars displayed(i.e. many characters are missing) in the updated pdf file.
Please let me know if anything missing during the replace text.
below is the code snippet am using for this.
com.aspose.pdf.facades.PdfContentEditor pdfContentEditor = new com.aspose.pdf.facades.PdfContentEditor();
pdfContentEditor.bindPdf(doc);
pdfContentEditor.replaceText("#UPPER LETTERS1#",1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
pdfContentEditor.replaceText("#lower letters2#",1, "abcdefghijklmnopqrstuvwxyz");
pdfContentEditor.save(outFile);
Note: When I copy the text from pdf, and paste in any editor, am able to see all characters.
Thanks,
Shivaji