Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Replace text is now working aspose.pdf java

$
0
0
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


Viewing all articles
Browse latest Browse all 3131

Trending Articles