Hi there,
Thanks for your inquiry. Please check following code snippet to replace several words in a PDF document. Hopefully it will help you to accomplish your requirements.
PdfContentEditor
pdfContentEditor = new PdfContentEditor(doc);<o:p></o:p>
pdfContentEditor.BindPdf(myDir+"input.pdf");
pdfContentEditor.ReplaceTextStrategy.ReplaceScope
= ReplaceTextStrategy.Scope.REPLACE_ALL;
pdfContentEditor.ReplaceText("<>", DateTime.Now.ToShortDateString());
pdfContentEditor.ReplaceText("<>", "John");
pdfContentEditor.ReplaceText("<>", "Berry");
pdfContentEditor.ReplaceText("<>", "F-12, 31/6");
pdfContentEditor.ReplaceText("<>", "HB Colony, CS Pur");
pdfContentEditor.ReplaceText("<>", "NY City");
pdfContentEditor.ReplaceText("<>", "NY");
pdfContentEditor.ReplaceText("<>", "631016");
pdfContentEditor.ReplaceText("<>", "0316");
pdfContentEditor.ReplaceText("<>", "Canada");
//save output PDF
pdfContentEditor.Save(myDir + "Modified.pdf");
Please feel free to contact us for any further assistance.
Best Regards,