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
{{ message }}
Repository navigation
Have PDF with portrait mode as example of viewerjs.org (to show zooming tool) #111
Current PDF examples on viewerjs.org all are in landscape mode, so ViewerJS assumes slides and goes to automatic zoom handling (i.e. full page and not showing the Zoom control).
Results in people wondering if zooming is supported at all also for PDF.
Hi, is it possible to enable zoom-controls in landscape PDF's? I need this when displaying CAD -drawings, they are usually in landscape, and contain a lot of detail, so zooming is a must here.
UPDATE:
Ok, I found solution, just change this line to return false: PDFViewerPlugin.js LINE 270
@generic-user right, this hack should give you what you need, well found :)
For the future there are plans to add a parameter mode or some more, so the UI of ViewerJS can be configured a little, as this automatic guessing about the nature of the PDF brings problems for too many, as your feedback showed by giving another good counter example.
Activity
generic-user commentedon Mar 18, 2015
Hi, is it possible to enable zoom-controls in landscape PDF's? I need this when displaying CAD -drawings, they are usually in landscape, and contain a lot of detail, so zooming is a must here.
UPDATE:
Ok, I found solution, just change this line to return false: PDFViewerPlugin.js LINE 270
kossebau commentedon Mar 18, 2015
@generic-user right, this hack should give you what you need, well found :)
For the future there are plans to add a parameter
modeor some more, so the UI of ViewerJS can be configured a little, as this automatic guessing about the nature of the PDF brings problems for too many, as your feedback showed by giving another good counter example.Force to show scroll when a PDF is in landscape mode BT#15044