Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML : How to specify PDF open parameters for Chrome native PDF reader?

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?

like image 268
sdespont Avatar asked Oct 28 '12 10:10

sdespont


People also ask

How do I change the opening settings on a PDF?

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 .

How do I change my browser preferences so it uses Acrobat or Reader PDF viewer?

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.

How do I configure my viewing environment for Adobe Reader?

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.


1 Answers

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.

like image 111
sdespont Avatar answered Sep 23 '22 22:09

sdespont