You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Canvas area exceeds the maximum limit (width * height > 16777216)
I understand the error but how i can display the page any way?
What im trying to achieve at the end of day is displaying the pdf page to the client.
Btw the same error happens i use react-pdf.
How i can handle this?
Activity
Snuffleupagus commentedon Jul 12, 2023
Please note that this is a limitation of the browser itself.
Furthermore, beginning with PDF.js version
3.5.141we're attempting to downsize large images. However this depends onOffscreenCanvasbeing available in the browser, and Safari was (comparatively) slow at implementing this; see https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas#browser_compatibilityFor future reference: When opening an issue, please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md since as-is this isn't really actionable/valid.