How to Embed a PDF File in WordPress 2023

How to Embed a PDF File in WordPress? An Easiest Way to Embed all PDF Files

Sometimes we have to embed the documents in our WordPress posts and pages. But the real problem here is even after uploading the PDF file to our WordPress website we can’t embed the file into the post or page.

We can only show the link of the PDF file in our content. If our visitor has to see or read the PDF file he or she has to download it first or else open the file link in a new tab of the web browser.

This thing seems to be a problem sometimes. But don’t worry today I will tell you how you can embed a PDF file in WordPress easily.

If the file which you want to embed is a form then I have a better plan for you. And that is creating the same kind of form in Google forms and then embed the Google Form in your content.

With the help of a simple plugin, I will tell you the procedure which you need to follow to embed a PDF file in WordPress post and pages.

Steps to Embed a PDF File in WordPress Posts and Pages

Ok, so now let us get started with this guide and learn how we can properly and easily embed a PDF file in WordPress content.

The first thing we have to do is add a PDF viewer in WordPress, that is to install the plugin on your website. Follow this link to visit the plugin page of PDF Viewer. (Plugin to be installed)

Get this plugin installed and activated on your website, you can directly install it using the dashboard plugin search or else download it from the WordPress plugin respiratory and then upload it to your website.

Do it however you wish and want. 

Once you successfully install and activate this plugin on your website go to Dashboard → Settings → PDF Viewer.

You will be taken to the plugin settings page where you can change the height and the width of the PDF viewer. By default, the width is 600 px and height is 849 px.

If you want you can change the height and width by changing the values. In case you change the values make sure you click on Save Changes button which you can find at the bottom part of the settings page.

Now you are all set to embed the PDF file in your post and pages. You have to use the below mentioned short code wherever you want to show up the file.

You have to change http://url.pdf with the URL of the PDF file which you would like to embed in the post and pages of your website.

We know the short code which we have to use to embed a PDF file in WordPress. So the next thing we have to do is upload the PDF file to your website.

You can upload it by clicking on the Add Media button which we get in the post editor. Or by going to Media → Add New.

After uploading the PDF file you have to copy the URL of the file you can copy the URL of the file by clicking on it.

Now add this file URL in the short code mentioned above and paste that short code in post or page where you want to embed the PDF file.

How to Add a PDF Viewer in WordPress?

PDF is widely used format when it comes to documents and other files. Most of the application forms and related things come in PDF format. If you want to embed a PDF file in your post or page on your WordPress website then I will tell you how you can do it.

Even after you add a PDF viewer in WordPress you have to upload the PDF file to your WordPress website. If you upload the PDF file to your website and don’t install the plugin which can embed the file.

Only the link to the PDF file can be displayed.

So your visitor has to download the file or open the link in a new window on the web browser.

Sometimes we have to embed the file within our WordPress post or page. In this guide of mine, I will tell you how you can add a PDF viewer in WordPress website.

Steps to Add a PDF Viewer in WordPress Posts and Pages:

The first thing you have to do to add a PDF viewer in WordPress is to install the plugin. The plugin which you have to install is PDF Viewer, you can follow this link to check out the details about the plugin.

This plugin will help you to embed the PDF file in your WordPress post and pages by adding a simple short code.

Once you successfully install and activate this plugin on your website go to Dashboard → Settings → PDF Viewer.

You will be taken to the plugin settings page where you can change the height and the width of the PDF viewer. By default, the width is 600 px and height is 849 px.

If you want you can change the height and width by changing the values. In case you change the values make sure you click on Save Changes button which you can find at the bottom part of the settings page.

Now you are all set to embed the PDF file in your post and pages. You have to use the below mentioned short code wherever you want to show up the file.

You have to change http://url.pdf with the URL of the PDF file which you would like to embed in the post and pages of your website.

In case you have Google Form you can read my recent guide to embed Google form in WordPress.

So this is how you can add a PDF viewer in WordPress posts and pages. I hope you are clear with all the information mentioned in this guide. If you have any kind of doubts or questions you can comment down below.

How to Add a PDF Download for Posts in WordPress?

PDF is always the most preferred file format for distributing the files and other documents. If you want to print any of the stuff you have PDF will be the most ideal file format for you to use.

But how about allowing your visitors to download your WordPress post as PDF format?

Sounds fascinating right? Yes, it does. In this guide of mine, I will tell you how to add a PDF download for posts in WordPress.

I have mentioned the steps to add download PDF button in WordPress. Once you add this your visitor will have access to a PDF version of your WordPress posts.

They can circulate and take a print out easily, this feature is mostly used by the people who run a music, recipe websites.

To make this thing working we need to install WordPress PDF download plugin. I will let you know about the plugin which you have to install in the further part of this guide.

Steps to Add a PDF Download for Posts in WordPress

Ok, so now let us gets started with this WordPress tutorial for PDF download button. As I have already mentioned that we have to install a WordPress media download plugin that is WP Advanced PDF.

Follow the above link and get the WordPress PDF download plugin and install it on your website.

After successfully installing and activating the plugin go to Dashboard → Settings → WP Advanced PDF.

Now you have to configure the things according to your needs. I will tell you the general things which must to configured to get this WordPress media download plugin.

The first thing you have to select is the place or position where you want to display the download button. You have two options and they are front end and the other one is admin panel.

In general settings, you have to select the post types which should be allowed to download using the button.

The next thing is the button positioning in this area you have to select the position where you would like to display the download PDF button.

You can set the remaining things according to your need and at last don’t forget to hit the save changes button.

This plugin lets you add a watermark too which will avoid the unauthorized distribution of your WordPress content.

Let’s Wrap Up

So this is how you can embed a PDF file in WordPress posts and pages. If you have any doubt in your mind you can leave your comment below and also checkout our other Informative Post.

Leave a Comment