HOME > Connection > How To Include Pdf In Html

How to include PDF in HTML

The Portable Document Format, or PDF for short, allows documents to be exchanged easily. It doesn't matter what operating system or hardware those exchanging the document have. Now, if you want to display a PDF in HTML on your website, you can use a tag.

Use an HTML tag

Per HTML, you can embed a PDF document on your website with just a few commands. It doesn't matter what operating system or hardware those who want to view the document have.
  1. The easiest way is to embed the PDF as a link. To do this, upload the PDF to your website so that it has its own address.
  2. Now use this HTML command: <a href="http://www.website.de/dokument.pdf">your PDF document</a>
  3. You can insert additional commands after the file name before closing the quotes. For example, with page=... the reader jumps to a specific page in the document.
  4. The PDF should now be displayed on your website.
There are also a few more ways to include a PDF via HTML:
  1. With the command <object width="..." height="..." type="application/pdf" data="PATH/NAME.pdf"> you can display a PDF document on a website via HTML. Width is specified in percent and height in pixels.
  2. You can also use the <iframe>tag. For this, the structure must look like this: <I frame src="NAME.pdf" width="90%" height="100px"></i frame>
  3. You can also use the <embed> tag to embed a PDF in your web page. The structure then looks like this: <embed width="90%" height="100" data="NAME.pdf" type "application/pdf" src="NAME.pdf"></embed>

By Lazes Oberman

Amazon Echo: Show Skills - how it works :: Thunderbird: Set up spam filter - this is how fast it works
USEFUL LINKS