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

All PDF Parsing fails after upgrading from v3.1.2 to v3.1.3 #350

Closed
DanLambe opened this issue May 30, 2024 · 0 comments
Closed

All PDF Parsing fails after upgrading from v3.1.2 to v3.1.3 #350

DanLambe opened this issue May 30, 2024 · 0 comments

Comments

@DanLambe
Copy link

I created integration tests for comparing PDFs using this library and started with version 3.1.2 within my repo. I noticed the types weren't working and copied the types in manually and cam up with a work around for the noisy console statements mentioned in previous issues. I saw the updated version and upgraded hoping the noisy console statements and typing issues were fixed. The typing issue does appear to be fixed with this version, but now all my tests fail with the following error and stacktrace when trying to parse any PDFs.

Error: Page 5: t.warn is not a function TypeError: t.warn is not a function at le.clearRect (file:///my-directory/node_modules/pdf2json/lib/pdfcanvas.js:289:12) at e.beginDrawing (file:///my-directory/node_modules/pdf2json/lib/pdfjs-code.js:40589:18) at e.initalizeGraphics (file:///my-directory/node_modules/pdf2json/lib/pdfjs-code.js:43623:16) at Object.onResolve (file:///my-directory/node_modules/pdf2json/lib/pdfjs-code.js:42920:32) at Object.runHandlers (file:///my-directory/node_modules/pdf2json/lib/pdfjs-code.js:889:28) at listOnTimeout (node:internal/timers:573:17) at processTimers (node:internal/timers:514:7)

irian-codes added a commit to irian-codes/npm-pdfreader that referenced this issue Aug 18, 2024
irian-codes added a commit to irian-codes/npm-pdfreader that referenced this issue Aug 18, 2024
This fixes [this pdf2json issue](modesty/pdf2json#350) which makes my app break running on Next.js 14 with node 22.6.
irian-codes added a commit to irian-codes/npm-pdfreader that referenced this issue Aug 18, 2024
This fixes this pdf2json issue (modesty/pdf2json#350) which makes my app break running on Next.js 14 with node 22.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant