webodf / ViewerJS

ViewerJS: Document Reader in JavaScript

Home Page:http://viewerjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

portrait and landscape showing differently

AndyBob444 opened this issue · comments

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.

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):

<iframe src = "ViewerJS/?zoom=page-width#../uploads/16722_20201112-132758_order129343.pdf" width="100%" height="100%" ></iframe>

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