Render issue. The text is absent, but we can select and copy it

Hi pdfjs.express team,

We have an issue with rendering some files in the pdfjs.express viewer. The text is absent, but we can select and copy it.

We can find the next message in the logs:

Warning: cmap table has unsupported format: 2
util.js:28 Warning: TT: undefined function: 32

Picture2

I have to split the bug report in 2 pieces as I can’t load more screenshots / add more links

Looks like pdf.js already had this issue in their list - /Encoding prevents characters in a specific font from rendering but they do in ghostscript, chrome, and acrobat · Issue #14117 · mozilla/pdf.js · GitHub and it was closed by this commit - Implement TrueType character map "format 2" (fixes #14117) by jberkenbilt · Pull Request #14118 · mozilla/pdf.js · GitHub.

There is a file example in that ticket that can be opened successfully now in Mozilla, but have same old issue in pdfjs.express viewer (also in pdf.js viewer that is opened from this article - How to Use PDF.js in 2 Easy Steps: Embed PDF in your Website).

Could you please add that fix to your code?

Hi dbezdushniak,

Thank you for contacting us regarding pdfjs and reporting this issue!

We’ve added the issue to our backlog to be worked on in the future. We don’t have a timeline for when it will be fixed but if it does get fixed we’ll let you know when it’s available in an experimental build to test out and the estimated official release date. If you have a desired timeline for having this issue fixed please let us know and we’ll do our best to work with you on how this can fit into the release schedule.

Best Regards,

Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hi Kevin,

Thank you for the quick response. We have a hard deadline for the product release within upcoming month. Therefore, we would greatly appreciate if you could add the fix for this issue to the next pdf.express version. This seems to be a critical issue on our end and blocker for the upcoming release.

Hi dbezdushniak,

Please try this build that has the fix here:
https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/WebViewer/PDFJSExpress-8.9.0-cmap-table-format-2.zip

Best Regards,

Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hi Kevin,

Thanks for the quick response again. The example file renders properly, but we need more time to test other PDF files with PHI data, so I will write you about results after we finish the testing.