CodeGuy CodeGuy - 4 months ago 26
HTML Question

Display PDF within web browser

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

Answer

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>
Comments