We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue with special character in PDF form fields

When creating a simple PDF document with Aspose.PDF 20.10 and setting the value to e.g. “Lyoner Straße 123” the value is displayed in Acrobat Reader as “Lyoner Straûe 123” (if the highlighting of PDF form fields is activated, which it is by default, I think).
Strangely the issue does not occure if the value contains e.g. an additional “ü” (German Umlaut for ue).

Example Code:
public void TestAspose()
Aspose.Pdf.Document pdfdoc = new Aspose.Pdf.Document();
Page page = pdfdoc.Pages.Add();
TextBoxField mrnBox1 = new TextBoxField(pdfdoc, new Aspose.Pdf.Rectangle(275, 540, 440, 558));
mrnBox1.Value = “Lyoner Straße 1234”;
pdfdoc.Form.Add(mrnBox1, 1);
TextBoxField mrnBox2 = new TextBoxField(pdfdoc, new Aspose.Pdf.Rectangle(275, 520, 440, 538));
mrnBox2.Value = “Merkwürdige Straße 1234”;
pdfdoc.Form.Add(mrnBox2, 1);

Here the resulting test document:
Fillable_PDF_Form.pdf (49.1 KB)


We have tested the scenario using the latest version of Aspose.PDF for .NET 22.2 and have not found the shared issue. So, please use Aspose.PDF for .NET 22.2. We have attached the output PDF with this post for your kind reference.
22.2.pdf (81.4 KB)