How To Embed PDF File In Your Blog Or Website

Hi! Everyone, hope you all are fine.
Today in this post I will tell you how you can embed PDF file into your blog or webpage. Now days PDF files are being used a lot and the uses of it is still increasing. And many people like blogger, developer, etc put PDF file link on the page for visitors but when visitor open it in there browser it takes the entire browser to view even if the page is small then the screen.

Image credit: Icon Finder

Here how you can embed PDF file

  1. Get the link of the PDF file you want to embed
  2. Now copy the below code
  3. <embed src="PDF-URL" width="500" height="375"></embed>

  4. Changes to make in code
  5.         i)  PDF-URl with your PDF file URL
            ii)  Change the value of height and width according to your need

  6. Now past the code where you want to embed your PDF file

Here how your embedded PDF file will look

Note: – If in your computer Adobe Reader plugin is not installed or if you are not using Google Chrome browser then you might not able to view the PDF file embedded, it will show a plugin error and it will ask you to install.

Here few tricks by which you want make the visitors view as you want them to by using some parameters.
After your PDF file URL put # then use any of the following things

toolbar=0 to hide the Tool bar

navpanes=0 To hide the navigation bar

scrollbar=0 to hide the scroll bar

search=word to show the searches of the word you want

If you want to use more than one from the above use & after each

Note: – You may or may not able to view in Google Chrome as because Google Chrome has its own PDF viewer so it don’t use Adobe reader plugin. However you can still make it work in Google Chrome by using iframe tag instead of embed tag (it will also work in other browsers).

Here a demo using iframe tag

If you have any questions or problem let me know

16 thoughts on “How To Embed PDF File In Your Blog Or Website”

  1. Hey Saket. This is very useful information. I have needed to embed pdf's in the past but didn't have a clue how to do it. Great step by step instruction. Keep it up!


  2. Hey, thanks for a great instruction, if been trying to find a solution for the google crome issue. but for me it doesn´t seem to work…if i use the iframe tag the entire design crumbles into a 10% version as seen here: (when I use the embed tag it won´t display the pdf´s as expected, but at least the site looks the same…)

    in firefox it looks like this: (both with iframe/embed)

    code for tha area looks like this:

    any suggestions? I am clueless:(

    all the best from berlin

  3. Hi Saket.

    Yes its good but personally I would still prefer to use Macromedia Flash Paper as a substitute for the PDF building There are few problems of using PDF in website. The PDF file size is heavier as compared to any swf file so the loading time is an issue. Also iframe is not recommended for use. Try to use include instead.

    Thanks and great work from your end keep up.

  4. Thanks for the useful article. Scrolling problem in ff. It actually scrolls the pdf rather than the page scrollbar. any fix would be appreciated. Thanks.

    1. I have checked when page loads in a web browser which use Adobe Reader to display PDF, by default Adobe will takes the selection on the first embedded PDF on the page, so instead of page PDF starts scrolling so you need to click anywhere out side the page to make the page scroll but in Firefox this bug extended more it don't work even when you click outside the page, so to bring the selection on the page you need to click on any link then only selection will come on the page. Hope this info will help you. 🙂

  5. Hello!

    I'm reading your "How to Embed PDF File" blog, but for some reason I cannot see these two parts of your article:

    Here how your embedded PDF file will look:


    Here a demo using iframe tag:

    (I'm using Firefox, if that makes a difference.) Any suggestions?


      1. Hello again!

        Checked: Reader is installed and the Reader plugin is enabled. It's very strange. I really want to see the whole thing.

        Any other suggestions?


        1. When I am viewing them on my computer using Firefox (on Windows), its working fine. Sorry, couldn't able to tel the reason. Try to re-install latest version of Adobe Reader on your computer.

          1. This is so frustrating! All my versions are the latest; I just can't see all of your post on your blog page, and I can't figure it out.

            Is there a way you could email me your "Embed PDF File" post? Maybe in PDF format?

            Thank you so, so much.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.