fix for pdf.js issue where some .pdfs don't display properly

For those using what is currently in develop with pdf.js - On my site I have many .pdfs of saved from Australia's Trove. They were generated using iText, and I noticed with a recent update with Chrome, the .pdfs are not loading correctly. . The fix is mentioned here https://hub.alfresco.com/t5/alfresco-content-services-forum/pdfjs-not-working-sometimes-on-chrome-92/m-p/308393 with the

var widths = [];

to

var widths = Object.create(null);


Also upgrading pdf.js will resolve the issue as well.

Comments

Sign In or Register to comment.