How to embed pdf on wordpress without downloading - opinion, you
Embedding PDF Files in WordPress Post Without Plugin
If you want to embed a PDF File in WordPress Post or page but not want to add any other plugin. Then, here is the solution. As we all know – adding more and more plugins makes your website slow, however, we often required to embed or add the PDF File in our WordPress post, then why should, we compromise the speed.
By default, when you upload and add the PDF File from the Media section to WordPress post; it only embeds a PDF in your blog post and shows only the PDF File name along with a link. In case, if you just want to give a user the PDF File download capabilities then it is good but not if you want to show the PDF File in the post so that user can view and read it directly on your website without leaving it; that also decrease the bounce rate.
In this article, we will show you how to add a PDF viewer in WordPress without using any PDF Embedder WordPress plugin.
Steps to Embedding PDF Files in WP post:
- Go to WordPress Page or Post where you want to add the PDF File to view.
- Now click on the Add Media button.
- Click on the Upload files Tab.
- Now again click on the Select file button to upload the PDF File.
- Select and upload your PDF File to WordPress media gallery.
- Once it uploads, come back to your blog post.
- Where you want to add the PDF File Viewer click there and after that just click on the Text Editor Mode tab given on the right top side of your text editor.
- Inside the Text Editor Mode – just place the following code (Please see code in the box area).
- Now click on the Add media, select the PDF File and copy its URL given on the right side.
- After copying the URL, just replace the https://www.example.com/demo.pdf with your own PDF file.
- You can also increase or decrease the size of embedded PDF file by altering the value of Width and height attributes given in the code.
- Once you replaced the URL you will see you have successfully added the embedded PDF File Viewer on WordPress post without any external plugin.
<embed src=”https://www.example.com/demo.pdf” type=”application/pdf” width=”660″ height=”550″></embed>
The above method may not work in the Microsoft edge browsers. In such a case, you can use the iframe code:
<iframe src=”http://www.websolvant.com/wp-content/uploads/2019/07/Amarjeet-malik-WebSolvant-Profile.pdf” width=”660″ height=”550″> </iframe>
Note: Change the PDF link with yours URL and in the Text tab of the editor same as mentioned above in this article
Best WordPress Plugins Embedding PDF Files
- PDF Embedder
- Google Doc Embedder
- PDF Viewer for WordPress
- PDF.js Viewer Shortcode
- WP Booklet
- Flowpaper
- Vanilla PDF Embed
- PDF Viewer
- PDF and Print by BestWebSoft
- PDF Tab for WooCommerce
- Real3D FlipBook WordPress Plugin
- Embed PDF Viewer
-
-