question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support for pdf.js v2.4.456

See original GitHub issue
Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [x ] Feature request
- [ ] Documentation issue or request

Hello there,

Is there any plan to update to pdf.js v2.4.456?

This newer release of pdf.js seems to include much better modularity. It includes more or less the work of nearly 6 months with several bugfixes to the application as well as the handling of PDFs

https://github.com/mozilla/pdf.js/releases/tag/v2.4.456

Cheers Igor

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
igorlinocommented, May 9, 2020

I see. IE10 and IE11 not begin the best example of a modern browser, at somepoint pdfjs probably wants to use more features of modern JS. It may not be the only one that come up.

We only use evergreen browsers in the last 5 years of projects. But if I had to perhaps I would suggest using a polyfill:

https://www.npmjs.com/package/weakmap-polyfill or https://github.com/ungap/weakmap

The reason, is there are tons of improvements to pdfjs, so I guess the polyfill, working, would be the better solution while taking all other advanges.

0reactions
igorlinocommented, Jun 2, 2020

The mozilla guys mentioned in the changelog something interesting:

“From now on we produce a non-translated/non-polyfilled build for modern browsers by default. However, we also provide the translated/polyfilled build for older browsers in a separate bundle (with the -es5-dist.zip suffix).” So, they do provide a separate bundle that has such compatibility.

Not sure how to make such optional dependency work. Some libraries use peer dependency, and you do whatever you want in your webapp at the end.

In the meantime, after many months a new release appeared yesterday, it includes performance optimizations/improvements:

https://github.com/mozilla/pdf.js/releases/tag/v2.5.207

Read more comments on GitHub >

github_iconTop Results From Across the Web

PDF.js v2.4.456 (build: 228a591c) Message - Kopernio
I cannot download the pdf after pressing the button "view pdf" because of the below message PDF.js v2.4.456 (build: 228a591c) Message: Cannot set...
Read more >
mozilla/pdf.js v2.4.456 on GitHub - NewReleases.io
New release mozilla/pdf.js version v2.4.456 on GitHub. ... #11281 Support Blend Modes which are specified in an Array of Names (issue 11279)
Read more >
PDF Viewer - Does not work externally - Nextcloud community
An error occurred while loading the PDF. PDF.js v2.4.456 (build: 228a591c) Message: Failed to fetch ... This happens if trying to open shared...
Read more >
pdfjs-dist - Snyk Vulnerability Database
version published direct vulnerabilities 3.1.81 26 Nov, 2022 0. C. 0. H. 0. M. 0. L 3.0.279 29 Oct, 2022 0. C. 0. H. 0....
Read more >
forked-pdf-viewer: Versions | Openbase
Full version history for forked-pdf-viewer including change logs. ... 2 years ago. Updates. [#601] - support for pdf.js v2.4.456 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found