[Bug]: verbosity property not available in latest pdfjs-dist when used with Angular #19834
Unanswered
JeevanMahesha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Attach (recommended) or Link to PDF file
I’m facing an issue when using the latest version of pdfjs-dist in an Angular application. In previous versions, we could configure logging using the verbosity property, but in the current release this property appears to be missing or has been removed.
After upgrading to the latest pdfjs-dist, trying to access verbosity causes a TypeScript error, and the runtime behavior fails when logging levels are set.
Web browser and its version
135 chrome
Operating system and its version
Mac Sequoia
PDF.js version
v5.1.91
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
I’ve created a minimal reproduction repo/project to illustrate the issue: https://stackblitz.com/edit/stackblitz-starters-jv7fncfv?file=src%2Fmain.ts
What is the expected behavior?
On Angular 16 we are able to access it.
What went wrong?
On angular 17 and higher version we are unable to access the verbosity property
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions