You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a PDF whose charstrings are encoded in UTF-8, and it uses Unicode characters beyond 0xFFFF. This PDF displays correctly in both Chrome and Adobe Reader DC, but it does not display correctly in Firefox.
Upon reviewing the code, I found an issue in the adjustMapping function at line 488 in the src/core/fonts.js file:
originalCharCode |= 0;
If originalCharCode is greater than 2147483647, this will cause it to become a negative value, resulting in an error. Commenting out this line allows the PDF to display correctly.
Since I am not fully familiar with the details, I am just submitting an issue here.
Attach (recommended) or Link to PDF file here: document.pdf
I have a PDF whose charstrings are encoded in UTF-8, and it uses Unicode characters beyond 0xFFFF. This PDF displays correctly in both Chrome and Adobe Reader DC, but it does not display correctly in Firefox.
Upon reviewing the code, I found an issue in the adjustMapping function at line 488 in the
src/core/fonts.js
file:If originalCharCode is greater than 2147483647, this will cause it to become a negative value, resulting in an error. Commenting out this line allows the PDF to display correctly.
Since I am not fully familiar with the details, I am just submitting an issue here.
Attach (recommended) or Link to PDF file here: document.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
The text was updated successfully, but these errors were encountered: