At times you might need to attach PDF documents or Spreadsheets to provide more information to your readers. But it’d be annoying for your readers to download the document every time.
Instead you can embed the documents in your blog posts and make it easier for your readers. In this post, I will show you how you can embed a PDF document in your blog posts using a WordPress plugin called Google Doc Embedder.
Don’t get confused with the name. It doesn’t need files to be on Google Docs and you don’t need to have a Google Doc account to use it.
How to Embed PDF files in WordPress Blog Post
First of all you need to install and activate Google Doc Embedder. ( Read : How to Install WordPress Plugin )
After activating you’ll have to configure some basic settings. You can find GDE Settings under Settings tab. From this page you can configure many things. You can select Viewer mode, Default Language, Default size etc.
If you select Enhanced Viewer mode you can choose which items to include in the toolbar (zoom in/out, page numbers, next page, full screen) and change the color of the background and border of the viewer.
You can Choose whether you want to show the download links to everyone or just logged in users and customize the Download link of that PDF document.
Advanced tabs lets you handle how the plugin is integrated with the Visual editor, the maximum file size, and error handling. You can also integrate Google Analytics for stats. And import and export settings in case of site migration or any other problems.
Now let’s see how to embed the document.
You can either use Shortcode or you can use the Google Doc Embedder button from Visual Editor.
Use the shortcode like this :
You can also use GDE button in WYSIWYG Editor. When you install the plugin there is ‘g’ mark button added in your Visual editor.
Click on this button and it will bring up the embedder dialogue screen. Paste the PDF URL into the URL field. Select width and height of the document. Select whether people are allowed a download link or not. And it will generate a shortcode automatically.
Click on the Insert button. Ta daa! You’re done. You have now embedded a PDF document in your blog post. And your readers can read it without any Adobe Browser Extensions whatsoever.
Note : With Google Doc Embedder you can embed 14 types of document in your blog posts including – PDF, PPT, XLS, DOC, PSD etc. And don’t forget it does not embed Google Docs. It simply uses Google Docs API is to display locally hosted files in the blog not embedding from the Google Docs itself.
Let us know if you have any other ways to embed PDFs in WordPress blog posts. Don’t forget to share the post.
Last Updated on