How to Embed PDF Files in WordPress Website Posts or Pages

Embedding PDF files into your WordPress Website Posts or Pages is a great way to showcase and share your content such as eBooks and other documents on your website. By embedding PDF files into your website post or pages, your visitors can easily access and view these files without leaving your site, enhancing their overall experience on your website. It is a simple, easy and effective way to make valuable information readily available to your audience.

There are numerous ways to embed, display or view PDF File into your WordPress Website Posts or Pages.

In this tutorial I will show you the following two easy and quick methods:

Embedding PDF Files in WordPress Website Posts or Pages from google Drive without Plugin.

You need to upload the PDF to your Google Drive first and then embed the file on your website by using the iframe code.

  1. Open Your Google Drive and Click New as Bellow.
uploading pdf file to google drive for embedding into wordpress website posts or pages
  1. Click on “File Upload” from the context menu
uploading pdf file to google drive for embedding in wordpress website posts or pages
  1. The following “Open” dialog box will appear. Navigate to your folder, select your PDF file, and click the “Open” button as shown below.
uploading pdf file to google drive for embedding in wordpress website posts or pages
  1. Your PDF file will be uploaded to your google drive as shown below.
uploading pdf file to google drive for embedding in wordpress website posts or pages
  1. In My Drive Double-click on your PDF file to display it, then click the three dots in the top-right corner and select ‘Open in New Window’.
embedding pdf file in wordpress website posts or pages
  1. After opening in a new window, click the three dots in the top-right corner again and select “Embed item” as shown below
embedding pdf file in wordpress website posts or pages
  1. After clicking on “embed item” the following dialog box will appear, copy the iframe code from here.
Coping Iframe Code From Embed item Dialog Box
  1. Go to your WordPress Dashboard, then click on “Add New Page” or “Add New Post”  Next click on “Add New Block” where you want to embed the PDF file as  and select “Custom HTML” as shown below
html block to past iframe code for embedding pdf file in wordpress website post or page
  1. And past the copied code as Shown below.
displaying pdf files in wordpress website posts or pages

(Note: if You want change the Height and width you can modify these in the pasted code)

  1. After pasting the either Preview or Publish your Page or Post to view the changes and see the embedded PDF file in your page or post.
embedding pdf file in wordpress post or page
  1. After previewing or publishing, your PDF file will be successfully embedded on your WordPress website Post or Page.
pdf file embedded in wordpress website page

Embedding PDF Files in WordPress Website Post or Pages Using Plugins:

There are numerous plugins available like PDF Embedder, TNC PDF Viewer and embed PDF viewer etc. all these are great options but I recommend to use PDF embedder as it lets you easily and quickly upload and customize PDFs directly on your site.

Both of these methods are effective, so choose the one that fits your needs. This will let you easily showcase different PDFs on your website, helping you connect with your audience.

Similar Posts