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

IndexOutOfRangeException in ReplaceText pdf

$
0
0
hi,

I am getting the following error when ReplaceText in the pdf.

See Sample Code:

Document doc = new Document(@"c:\temp\pdf\a.pdf");
Aspose.Pdf.Facades.PdfContentEditor editor = new Aspose.Pdf.Facades.PdfContentEditor();
editor.BindPdf(doc);
editor.ReplaceText("1", 1, "*"); // Exception
doc.Save(@"c:\temp\pdf\c.pdf");

Thanks
Kim

PS: 
PDF_9.7.0
A.pdf Attached

Viewing all articles
Browse latest Browse all 3131

Trending Articles