Open hheexx opened 1 year ago
Hi, I am trying to use PdfSharpCore for very basic task of filling forms. Unfortunately I have Unicode problem.
using PdfDocument document = PdfReader.Open(@"C:\Users\user\Downloads\cxPdfTest.pdf"); PdfTextField f = (PdfTextField)document.AcroForm.Fields["txtName"]; f.Text = "Lorem Ipsumović"; document.Save(@"C:\Users\user\Downloads\cxPdfOut.pdf");
Any hints?
Ok, I fixed it like this.
f.Value = new PdfString("Lorem Ipsumović", PdfStringEncoding.Unicode);
Text property should probably be changed to Unicode, it's 2023.
Hi, I am trying to use PdfSharpCore for very basic task of filling forms. Unfortunately I have Unicode problem.
Any hints?