Embed PDF in HTML - so it'll work
Often PDF documents should not only be made available for download, but should also be displayed. We therefore show you step-by-step how to integrate a PDF file in HTML.
Embed PDF in HTML - it's that easy
Integrating PDF documents into HTML pages is not a problem and can also be easily done by beginners. With the "object" tag you only need a short section of code.
- Fortunately, the "object" tag is supported by all current browsers. So you can use it without worry.
- The "object" tag requires some information. In addition to the usual size specifications "width" and "height", the "type" and "data" attributes are also required.
- For "type" write "application / pdf" and for "data" enter the location of the document. If you do not use your own server, you can also use some file hosting platforms.
- You can see the entire syntax in the example image on the right.
- On the next page we will show you how you can save websites as PDF files.