public static void Run()
{
// ExStart:ReplaceText
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Text();
// Open input PDF
PdfContentEditor pdfContentEditor = new PdfContentEditor();
pdfContentEditor.BindPdf(dataDir + "ReplaceText.pdf");
// Replace text on all pages
pdfContentEditor.ReplaceText("Hello", "World");
// Save output PDF
pdfContentEditor.Save(dataDir + "ReplaceText_out.pdf");
// ExEnd:ReplaceText
}
}