Display PDF within web browser

CodeGuy picture CodeGuy · Jan 31, 2011 · Viewed 270.7k times · Source

How can I display a pdf within a web browser on an .html page?

Answer

bradenkeith picture bradenkeith · Jan 31, 2011

I use Google Docs embeddable PDF viewer. The docs don't have to be uploaded to Google Docs, but they do have to be available online.

<iframe src="http://docs.google.com/gview?url=http://path.com/to/your/pdf.pdf&embedded=true" 
style="width:600px; height:500px;" frameborder="0"></iframe>