fillable-pdf
fillable-pdf copied to clipboard
Missing national characters
Any idea what I'm doing wrong or what should I change?
In any fields with value included national characters, proper value is displayed only when field is "clicked/active"
In printout or preview national characters are invisible.
Working OKey only when I input manually (from Adobe Reader or macOs preview) values with national characters.
The issue is only when I fill form from RoR application (UTF-8 as default for app and DB).
Examples as attached.


Second param in method set_field in FillablePDF class helps (as attached).
Possibility to set params value in method set_field will be helpful.
Unfortunately the fix to add false
as a second parameter of setValue
does not work with the latest iText version (7.2.3). The problem is likely with the encoding of the original PDF file, and the encoding of the font you're using in that form field probably does not support these types of characters.
There is now a generate_appearance
optional parameter for the set_field
and set_fields
methods that partially addresses this problem.
Thank you for this change. Now it's OK.