Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PDF.js above v2.0.305 #180

Closed
wojtekmaj opened this issue Apr 1, 2018 · 0 comments
Closed

Upgrade PDF.js above v2.0.305 #180

wojtekmaj opened this issue Apr 1, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wojtekmaj
Copy link
Owner

In version following v2.0.305 there were several changes introduced

  • PDFJS object was removed
  • disableWorker was deprecated

This forces us to make several changes to the code. Mainly:

  • replace setOptions with passing options to getDocument
  • rewrite the code not to use PDFJS object, but default import instead
  • get rid of entry file with reduced functionality - disabled workers and all the mentions of it in the documentation
  • update tests to somehow support JSDom while still having workers disabled (discussed on getDocument hangs in Jest/JSDom environment mozilla/pdf.js#9579)
@wojtekmaj wojtekmaj added the enhancement New feature or request label Apr 1, 2018
@wojtekmaj wojtekmaj added this to the 4.0.0 milestone Apr 1, 2018
@wojtekmaj wojtekmaj self-assigned this Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant