upgrade pdfjs-dist from 3.0.279 to 4.2.67 #224
Merged
+106
−43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
This PR is upgrading the version of pdfjs-dist from 3.0.279 to 4.2.67. There were some api changes in pdfjs-dist that was affecting failures.
textContent
/textContentStream
parameters mozilla/pdf.js#15779disableCombineTextItems
option mozilla/pdf.js#16234pdf.worker.min.js
but now it's generating it in mjspdf.worker.min.mjs
There were so many other changes in pdfjs-dist but they don't seem to affect our code.
How to test
I tested this locally and also in playground by uploading pdfs and viewing them in the UI. The pdfs are all rendered successfully.