javascript - choose default view with PDF objects -
i using html 5 object tags embed pdfs on pool teams website. on safari, pdf automatically fits width i've assigned div pdf displays in. on chrome, pdf size set fullsized, looks zoomed @ first.
here's code
<object data="docs/pool schedule.pdf?#view=fith" type="application/pdf" width="660" height="440"> <param name="view" value="fith" /> </object>
i have added parm tag appended ?#view=fith
in attempts default view. neither seems .
i'm wondering if there's way default browsers fit width view (screenshot 2).
if want view website, it's kingston8ball.com
note: realize both photos chrome, simplicity took second screenshot same browser , desired view rather switching browsers.
this isn't answer looking in question, it's alternative solution minimal effort. ended using viewer js. tool copy js source files root of website , add following line html files want pdf iframe appear.
<iframe frameborder="" id="viewer" src = "http://kingston8ball.com/viewerjs#/docs/league rules 2015.pdf" width='650' height='500' allowfullscreen webkitallowfullscreen></iframe>
Comments
Post a Comment