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
- Get the link of the PDF file you want to embed
- Now copy the below code
- Changes to make in code
- Now past the code where you want to embed your PDF file
<embed src="PDF-URL" width="500" height="375"></embed>
i) PDF-URl with your PDF file URL
ii) Change the value of height and width according to your need
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