I am displaying some PDF documents in my web site like this :
<object id="pdfviewer1" data='b.pdf#page=1&toolbar=0&statusbar=0&messages=0&navpanes=0&scrollbar=0'
type='application/pdf'
width='500px'
height='350px'>
<p>It appears you don't have a PDF plugin for this browser.</p>
</object>
Because of native PDF reader on Chrome, all openParams options are ignored because they are specifics for Adobe Reader.
Is it possible to specify PDF open parameters for Chrome native PDF reader?
Right-click the PDF, choose Open With > Choose default program or another app in. 2. Choose Adobe Acrobat Reader DC or Adobe Acrobat DC in the list of programs, and then do one of the following: (Windows 10) Select Always use this app to open .
Choose Preferences > Applications. Select Portable Document Format (PDF) from the Content Type Column. Click the Action column next to Portable Document Format (PDF), and then select Use Adobe Acrobat NPAPI Plug-in.
Safari on Mac or Windows - browser preferencesSelect Adobe Reader in the list of plug-ins. Under When Visiting Other Websites, in the drop-down list choose Allow Always and click Done. The browser is now set to use the Adobe Reader plug-in to display PDFs.
I am just quoting @Robotsushi answer he has written in his topic for closing the question :
After checking various chrome bug reports, I can confirm that google chrome ignores the defualt functionality of adobe pdf viewer and at the time of this answer there is no way to passing parameters like zoom to the pdf viewer in chrome. I hope this saves someone else some time.
EDIT:
See the quoted answer for updated information. As of Dec 2017 Chromium added support for view
, zoom
, page
, toolbar
and nameddest
and later made it into Chrome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With