Deen Deen -3 years ago 116
HTML Question

How to show external pdf in html

I have tried by using


<iframe src="" sandbox="allow-same-origin" style="width: 100%; height: 100%;">

But getting this warning:

Resource interpreted as Document but transferred with MIME type application/pdf: "".

Is there any alternate option to show PDF file?

Answer Source

Implementation of a PDF file in your HTML:

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