Blog is under maintenance mode. Test link

How to Embed PDF in Blogger

 Do you want to embed PDF files in your Blogger Website?  Well, In this article i will share with you the easiest way to embed pdf in any webpage. 

How to Embed PDF in Blogger

As you know we can't upload pdf files to the Blogger website. So, for this, 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. 

  • Using Object Tag
  • Using an iframe
  • Using embed tag

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 PDF file in Blogger

  1. First of all Upload the Pdf file to Google Drive
  2. Now change the share link permission to public view and copy the link to the clipboard. 
  3. Now you need to add the below iframe code in the HTML view of the blog post. 
  4. Then change the Gdrive file id with the given code and save the post. 
<iframe src="https://drive.google.com/file/d/18bJlmnGH7e1Ku_f1CHdNDt2L6rnBBkJc/preview" width="640" height="480"></iframe>

In the above code, you need to change this id 18bJlmnGH7e1Ku_f1CHdNDt2L6rnBBkJc

Now the pdf file is embedded in the Blogger website successfully. 

You can also adjust the height and width according to the pdf file and the webpage dimensions.

I hope in this article you have learned how to embed PDF files on the Blogger website. 

Choose Language
Content Creator, Blogger, Front-end Developer
Bookmark This Blogger: 😌

Post a Comment

Cookies Consent

This website uses cookies to offer you a better Browsing Experience. By using our website, You agree to the use of Cookies

Learn More