I am trying to replace a text string in a PDF file but I'm finding that the output has scrambled text. I have attached the output PDF and the code is below.
I would appreciate any thoughts on how to resolve this one.
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
Aspose.Pdf.Kit.PdfContentEditor editor = new Aspose.Pdf.Kit.PdfContentEditor();
editor.ReplaceText("replace", "jkl123 here is the new text");
editor.Save(System.IO.Path.GetDirectoryName(openFileDialog1.FileName) + \\output.pdf);