htmlpdfbrowser

Display PDF within web browser


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


Solution

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