I am trying to display a pdf that is available on a different website . how do i do it without redirecting to the website with the file and by using the url
Asked
Active
Viewed 383 times
-1
-
1[Use an iframe](https://stackoverflow.com/questions/19654577/html-embedded-pdf-iframe) – Nino Filiu Jan 17 '19 at 12:00
1 Answers
2
Number of solution from Scalified
There’re three main options for injecting a PDF into an HTML page:
Using HTML tags iframe, embed and object:
<iframe src="https://scalified.com/valid-document-url.pdf" width="100%" height="100%"></iframe>
<embed src="https://scalified.com/valid-document-url.pdf" width="100%" height="100%"></embed>
<object src="https://scalified.com/valid-document-url.pdf" width="100%" height="100%"></object>

Sergey Ovsyannikov
- 171
- 1
- 7