Deen Deen - 1 year ago 63
HTML Question

How to show external pdf in html

I have tried by using

iframe
:

<iframe src="http://prawnpdf.org/manual.pdf" sandbox="allow-same-origin" style="width: 100%; height: 100%;">


But getting this warning:

Resource interpreted as Document but transferred with MIME type application/pdf: "http://prawnpdf.org/manual.pdf".


Is there any alternate option to show PDF file?

Answer Source

Implementation of a PDF file in your HTML:

<embed src="http://prawnpdf.org/manual.pdf" style="width: 100%; height: 100%;"/>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download