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
Open a large pdf (not big file size but large page dimensions) on a device with high pixelratio (i.e. 3 = iPhone)
Zoom in
After a few zooms you run into a warning that the canvas exceeds the maxCanvasPixels and the rendering stops
I know you can set the maxCanvasPixels when initializing the viewer. But it would be great to also limit the max. pixelRatio used to calculate the outputScale and render function. Otherwise you can't zoom in on large pages for example like a construction plan.
Just limiting the pixelRatio (const pixelRatio = Math.min(window.devicePixelRatio || 1, 2);) in the render function and outputScale class to 2 help that I can view the large pdf on the mobile device and zoom in pretty good (and the image quality is fine as well).
Is there a way you can implement that in the upcoming release or is there maybe an even better way to deal with such large page dimensions?
The text was updated successfully, but these errors were encountered:
Attach (recommended) or Link to PDF file here:
building-plan.pdf
Configuration:
Steps to reproduce the problem:
I know you can set the maxCanvasPixels when initializing the viewer. But it would be great to also limit the max. pixelRatio used to calculate the outputScale and render function. Otherwise you can't zoom in on large pages for example like a construction plan.
Just limiting the pixelRatio (const pixelRatio = Math.min(window.devicePixelRatio || 1, 2);) in the render function and outputScale class to 2 help that I can view the large pdf on the mobile device and zoom in pretty good (and the image quality is fine as well).
Is there a way you can implement that in the upcoming release or is there maybe an even better way to deal with such large page dimensions?
The text was updated successfully, but these errors were encountered: