Scaling and other options do not work on embedded PDF

I am embedding a PDF using <object>

in a page. I want the PDF to be displayed as only a part of the page, and I would like the entire first page to be displayed in the visible area (like a snapshot of the first page). I am working with PDF open parameters and I see various examples for customization zoom

and view

for example:

  • http://example.org/doc.pdf#page=3&zoom=200,250,100

  • http://example.org/doc.pdf#page=72&view=fitH,100

I cannot get them to work. When I change the parameter page

, the displayed page changes, but I cannot figure out how to customize the view.

JS Fiddle demonstration of the problem . And a sample code for embedding:

<object width="300" height="375" type="application/pdf" data="file.pdf?#page=2&zoom=100">
    <p>Message for non-compatible browsers</p>
</object>

      

I saw this question: Initial scaling option for PDF in HTML5 , but the answers didn't work for me.

+3


source to share





All Articles