webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 422 forks source link

portrait and landscape showing differently #277

Open AndyBob444 opened 4 years ago

AndyBob444 commented 4 years ago

portrait PDFs appear to display at the document default settings e.g. 100% zoom and continuous, and the zoom options are displayed at the bottom of the window/frame. Landscape documents auto fill the window, are single page only and do not show the zoom options.

craigbass76 commented 3 years ago

Was there a fix for this? I've got the same issue. I've got a css div of 50% wide, and a landscape pdf looks fine in that, but not if I make the div 100%. Long story, but I'm changing the layout of a PHP app I'm writing (keeps track of purchase orders) and I just noticed this tonight. I'm setting zoom level with this (I know, iframes, but I don't see another way):

Seems like I ought to have a vertical scroll bar and zoom options though.