How to embed pdf in WordPress
WordPress is a powerful content management system that allows you to easily add various types of content to your website, including PDF files. In this blog post, we will explore how to embed PDF files in WordPress using plugins.
There are a few different ways to embed a PDF in WordPress, depending on your needs and preferences. Here are three methods you can try:
Why Embed PDF Files?
Embedding PDF files in your WordPress website can be useful in many ways. For example, you can embed PDF files to:
- Share important documents with your visitors
- Provide instructions or guides in PDF format
- Embed portfolios, brochures, or catalogs
Using the WordPress PDF Embedder Plugin:
- Install and activate the WordPress PDF Embedder plugin on your WordPress site.
- Upload the PDF file to your Media Library (Media > Add New).
- While editing a post or page, click the “Add Media” button.
- Select the PDF file you uploaded, and then click the “Insert into post” button.
- The PDF will be embedded in your post or page using the WordPress PDF Embedder.

Using the Google Drive Embedder Plugin:
- Install and activate the Google Drive Embedder plugin on your WordPress site.
- Upload the PDF file to your Google Drive account.
- While editing a post or page, click the “Add Media” button.
- Click the “Insert from URL” tab, and then enter the shareable link to your PDF file in Google Drive.
- Click the “Insert into post” button to embed the PDF.

Using the PDF.js Viewer Plugin:
- Install and activate the PDF.js Viewer plugin on your WordPress site.
- Upload the PDF file to your Media Library (Media > Add New).
- While editing a post or page, add a new block (the “+” button) and select “PDF.js Viewer” under the Widgets category.
- In the block settings, select the PDF file you uploaded to your Media Library.
- Customize any additional settings you want, and then save the block.
- The PDF will be embedded in your post or page using the PDF.js Viewer plugin.

Conclusion
In this blog post, we have explored three methods to embed PDF files in WordPress using plugins. You can choose the method that works best for you based on your preferences and requirements. By embedding PDF files in your WordPress website, you can share important information, provide instructions or guides, and enhance the user experience.
Geek Code Online Web Tutorials
March 17, 2023[…] the PHP file and activate the plugin in the WordPress admin area by going to Plugins > Installed Plugins and clicking the “Activate” link […]