PDF is one of the most popular formats of data and this is quite useful everywhere. PDF can be very useful to display your content on your website. For example, if you own a restaurant you can share your menus, ebooks, and other stuff with help of pdf. Visitors can download read or print as they need.
In today’s post, I will show you how to embed pdf in WordPress. I will show you two different methods and you can choose any of these methods. Let’s begin then.
How To Embed PDF In WordPress
Well, you can embed pdf in 2 ways 1. Using Google Drive, 2. Using plugins.
Method 1: Embed Pdf In WordPress Using Google Drive
In this method, all you have to do is keep the pdf in Google Drive and embed it in WordPress. You don’t have to use any plugins for the procedure.
First, log in to your Google Drive account. Then upload the pdf to your drive account. Just click on the new button.
Then click on the ‘File upload’.
A pop up will open and then you select the pdf file from your computer. Then you have to open the pdf file that you uploaded in Google Drive by double-clicking on it. On the top right corner of the menu bar select open in a new window.
When your pdf has been opened, click on the three dots icon and select the share button.
A popup will now appear with, Share with people and groups. Click on ‘change to anyone with the link.’
Then select ‘Anyone with the link’ and press the Done button.
If you don’t want your PDF to be downloaded printed or copied by your users navigate to share options.
Click on the Advanced button on the top right and remove tick on ‘Viewers and commenters can see the option to download, print, and copy.
Now click anywhere.
Again click on the three dots and click on ‘Embed item’.
Copy the HTML code displayed here.
Now go to your WordPress dashboard and open the page or post where you want to show pdf. Insert a shortcode block.
Now paste the HTML code in the shortcode block.
When you publish and preview the post you will be able to see the pdf appear on your website.
Embed PDF In WordPress Using A Plugin
To embed pdf in WordPress using a plugin at first navigate plugins -> Add New. Then search for PDF Embedder. Install this plugin and activate it.
The default configuration is enough to embed a pdf but if you want to customize settings you can do it from Settings -> PDF Embedder.
Now open the page post and insert a block named pdf embedder.
Select the pdf on your computer and hit the Select button.
Update the post and you will be able to see pdf in your post or page.
So which method is you are going to choose? If you ask me I would say to go for without plugin method as there is no need to install any extra plugins or upload media to your server. If you have any hard time embedding the pdf, ask me for help. I will be happy to do it.
If you liked the post feel free to share it with your friends. Don’t forget to share your thoughts in the comment box below.