Replies: 1 comment 3 replies
-
To add more context: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to PDF Viewer: REMOVED
Configuration Details:
Issue Reproduction Steps:
Attempted Solution:
I attempted to enable onlyCssZoom by setting PDFViewerApplication.pdfViewer.maxCanvasPixels to 0. However, this approach resulted in an error, preventing the opening of most larger PDFs on iOS devices due to an increase in max canvas size. Adjusting maxCanvasPixels to 16,777,216 on iOS devices seemed to disable CSS Zoom and it still runs into the same error at some point.
Current Issue:
Upon zooming in, the viewer stops because it encounters the "Canvas area exceeds the maximum limit" error again, indicating the limitation setting is not functioning as expected.
Expected Behavior:
Given the canvas size limitation of 16,777,216 on iOS, the library should verify the expected canvas size against this limit and render the largest possible dimensions that do not exceed this threshold. Subsequent zooming should use CSS scaling to provide a viewable albeit blurred image, instead of displaying a blank screen. This behavior should apply whether PDFViewerApplication.pdfViewer.maxCanvasPixels is set to 0 or to 16,777,216.
Beta Was this translation helpful? Give feedback.
All reactions