Hello i tried to replace text in pdf, but it seems that pdf.kit dont work with russian culture e.g.
static void Main(string[] args)
{
License l = new License();
l.SetLicense(“Aspose.Total.lic”);
byte[] data = OpenFile(@“D:\pdfTest.pdf”);
LoadPdf(data);
//ReplaceText(“текст”, “русский текст”);ReplaceText(“Decimal”, “русский текст”);
}
public static void ReplaceText(string source, string replace)
{
PdfContentEditor pce = new PdfContentEditor();
pce.BindPdf(_inMs);
pce.ReplaceText(source, replace);
pce.Save(@“D:\file.pdf”);
}
In first (commented) string ReplaceText(“текст”, “русский текст”);
i tried to replace russian text with another russian text,
but nothing happend at all, no replacement take effect.
Then with second string i tried to replace english text with russian
text, at that point he found text needed, but replacement value was
totaly incorrect. Instead of value needed PdfContentEditor replaced
it with other symbols, like “«ƒ”.
Is there any way of setting culture for pdf file or any other
way to avoid this issue?
I have trial license, just in case if its matter.