How to Embed PDF in Site using iframe
iframe is a command used to attach a document in an html page. Well the basic line of code is:
<iframe> .... </iframe>
Some of the basic attributes in using this iframe are:
src is the address of our file or document that we store in an online storage.
width is the width of the document frame that we want to display. This width is expressed in pixels.
height is the height of the document frame that we want to display. This height is expressed in pixels.
<iframe src="www.sourceofpdf.pdf" width="640" height="480"></iframe>
Steps to display PDF on Website
In the following I will give an example of using Blogger or Blogspot, yes, you can use this tutorial on other websites such as wordpress, joomla, and other websites.
For example, I want to insert a PDF file into my blog that is Nikon Digital Camera D3300. Then I copy the link and paste it into the iframe attribute, so it becomes:
<iframe src="https://download.nikonimglib.com/archive2/payY500AHbkQ02bXMhb14TZo4978/D3300_NT(En)02.pdf" width="640" height="480"></iframe>
Now, I put the code above into the post in HTML mode, then save it, it will be like this:
Hopefully this article that can display blogspot, blogger, wordpress, and other websites pdf files can help you.
If you find this article useful, you can share this article. Thank you.
- cara upload file pdf di blog
- cara upload file pdf ke website
- cara menampilkan file pdf di wordpress
- cara mengupload file ke blogger