Issue with PDF Field Forms

Hello,

I have a strange issue with one document which has contentcontrols.
After it gets converted to a pdf with form fields I can type y and 8 into the form field but it doesn’t display y or 8.
Instead it is showing empty space.
The issue appears when opening the pdf in Chrome or Edge.
I converted the document with Aspose 21.10 to pdf.
With Aspose 23.1 the pdf has still the issue.

Can you please help me with this issue?

Issue PDF Fields.docx (19.7 KB)
Issue PDF Fields.pdf (14.1 KB)

@cternek It looks like MS Edge can use only glyphs of the fonts embedded into the PDF document. So it displays only characters, which glyphs are there in the font subset embedded into the document. The problem does not occur if embed full fonts:

Document doc = new Document(@"C:\Temp\in.docx");

PdfSaveOptions opt = new PdfSaveOptions();
opt.PreserveFormFields = true;
opt.EmbedFullFonts = true; // Embed full fonts

doc.Save(@"C:\Temp\out.pdf", opt);

Looks like a glitch or limitation in MS Edge. The problem does not occur in Acrobat Reader.

Thank you for the suggestion.

I have tried it but unfortunately it didn’t solve the issue.
When I type now in the new pdf file 8 is displayed an U and y is o with accent-

I can copy the typed text from the pdf form field into the address field of the edge brower.
There the text is displayed correct.

Issue PDF Fields embedded font.pdf (552.3 KB)

@cternek It look like your version of ArialMT font does not have the required glyphs. I have converted your document to PDF on my side and the problem is not reproducible: out.pdf (562.6 KB)

Thank you, that is strange.
I actually haven’t found any ArialMT font, only Arial Rounded MT version 1.51 on my system.
I am working on Windows 11 and have installed Microsoft Office 365.

To be sure that it is not the font I’ve changed the font in the document to TimesNewRoman.
Unfortunately with this document converted to pdf I get the same issue.
Can you please have a look at the new files?

Issue PDF Fields - TimesNewRoman.docx (19.0 KB)
Issue PDF Fields - TimesNewRoman.pdf (657.6 KB)

@cternek Unfortunately, I cannot reproduce the problem on my side. Here is PDF document produced on my side using the latest 23.4 version of Aspose.Words: out.pdf (667.6 KB)

As I can see you are using old 21.10 version. So please try using the latest version of Aspose.Words.

Thank you @alexey.noskov
I can confirm that it worked after updating to version 23.4

1 Like