Special characters not properly replaced
Closed this issue · 7 comments
For example; character ≤
is replaced with "d
Thank you for the report. I can reproduce the problem with ≤ and will look into it. Of course, you are very welcome to contribute a patch.
XFA seems unaffected, it's only a problem with AcroForms (i.e.: to reproduce, test with okular, evince, Chrome etc. , not Adobe Reader).
With the new release 1.0.3, ≤ and other characters should be encoded correctly. However, it seems that okular - at least on my system - has trouble generating the appearances. If you click into the text input, however, everything works fine for me.
Can you confirm?
As always, patches (e.g. for appearance generation) welcome!
Thanks @phihag for the fix !
I just updated the pdf_js
version but got an error when using it
wget 'https://raw.githubusercontent.com/phihag/pdfform.js/dist/dist/pdfform.pdf_js.dist.js'
I got this in the browser console
TypeError: minipdf_lib.isNull is not a function
Is that related to the release of dist ?
I have no time right now to dig about the okular rendering but I'll try to get some time to do it.
Oh, I apologize. Should be fixed now.
Hi @phihag,
Thanks for the fix abou isNull
.
I also tried to generate a PDF file with ≤
.
It worked on Acrobat Reader but on Chrome it generate a space instead (with pdf js).
I can reproduce this, but that seems to be a Chrome bug: I cannot manually input ≤
in an empty form with Chrome either. Can you?