简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM