Do you want to embed PDF files in your Blogger website? In this article, I will share with you the easiest way to embed a PDF in any webpage.
As you know, we can't upload PDF files directly to the Blogger website. Therefore, we need to upload our PDF file to a third-party service like Google Drive.
There are three ways to embed PDF files in HTML:
<object> tag<iframe>But in this tutorial, we will use the HTML iframe to embed the PDF file in the Blogger website, as it is widely supported in all browsers.
Steps to Embed a PDF File in Blogger
iframe code in the HTML view of the blog post.<iframe loading="lazy" width="100%" height="800" src="https://drive.google.com/file/d/1LtZ0sVLWZOiKzno2Xl8Yyy9YGQNoUMoe/preview?usp=sharing"></iframe>
In the above code, you need to change this id 18bJlmnGH7e1Ku_f1CHdNDt2L6rnBBkJc
Now the PDF file is successfully embedded in the Blogger website.
You can also adjust the height and width according to the PDF file and the webpage dimensions.
I hope you have learned how to embed PDF files on the Blogger website from this article.

Post a Comment