Initial Zoom Parameter for PDF Object in HTML5

前端 未结 4 846
执念已碎
执念已碎 2020-12-30 08:59

I am building a page that will display a PDF file on the page. When viewing this page in Chrome, the zoom level is set by default so that the document is wider and taller th

4条回答
  •  长情又很酷
    2020-12-30 09:21

    Another late answer (looks like we're on a 2-year cycle...)

    I found that setting the parameter #zoom=Fit finally did the trick. This is only in FF so far. Chrome is laughing at every parameter I feed it.

    Note that the documentation states that view gets the Fit values, but zoom is the one that seems to do anything with them.

    I hope this helps someone down the line.

提交回复
热议问题