javascript - Embed PDF at full height -


my question ... possible embed pdf in html document height 100%. problem actual height of pdf vary , layout needs respond this.

there several ways embed pdf in html.

one use pdfobject. below example works out of box in firefox, you'll find further instructions browsers on website.

<object data="myfile.pdf" type="application/pdf" width="100%" height="100%">     <p>it appears don't have pdf plugin browser.     no biggie... can <a href="myfile.pdf">click here     download pdf file.</a></p> </object> 

or use google drive viewer display pdf (and quite few more file types):

<iframe src="http://docs.google.com/viewer?url=[http://path-to-your-file.pdf]&embedded=true" width="600" height="780" style="border: none;"></iframe> 

using drive viewer visitors don't need additional software/plugin view files.

you can adjust height of pdf container css. i.e

#yourcontainer { height: 100vh; } 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -