How to Embed PDF Files in WordPress (3 Easy Ways)

How to embed PDF files in WordPress

Sharing a PDF as a plain download link means readers have to leave your page to read it. Embedding the PDF shows it right inside your post, so readers can scroll through it without leaving.

This is useful for product catalogs, menus, cheat sheets, ebooks, reports, and printable templates. Here are three easy ways to do it, from no plugin at all to fancy flipbooks.

MethodCostBest for
Core File blockFree, built inQuick, simple embeds
PDF Embedder pluginFree (premium available)Consistent look on all devices
Flipbook pluginFree or paidMagazines, catalogs, brochures

Method 1: Use the Built-In File Block (No Plugin)

Since WordPress 5.8, the core File block can show PDFs inline. Here is how:

  1. Open your post in the block editor.
  2. Click the + button and add a File block.
  3. Upload your PDF or pick one from the Media Library.
  4. In the block settings on the right, turn on Show inline embed.
  5. Set the height and decide whether to show a download button.
  6. Update or publish the post.

The catch: this uses the browser’s own PDF viewer, and many mobile browsers do not show inline PDFs. Mobile visitors will see a download link instead. If most of your readers are on phones, use a plugin.

Method 2: Use the PDF Embedder Plugin

PDF Embedder is a free plugin used on hundreds of thousands of sites. It renders PDFs with its own viewer, so they look the same on desktop and mobile.

Step 1: Install the plugin

Go to Plugins > Add New, search for PDF Embedder, then click Install and Activate. New to plugins? See how to install a WordPress plugin.

Step 2: Adjust the settings

Go to Settings > PDF Embedder. Set the default width and height (Max fills the available space) and choose where the toolbar appears: top, bottom, or both, and whether it is always visible or only on hover.

Step 3: Embed your PDF

In the block editor, add the PDF Embedder block and upload or select your file. In the classic editor, click Add Media, choose your PDF, and insert it. The plugin creates a shortcode automatically.

The premium version adds a download button, full screen mode, view tracking, and options to make downloading harder. Check the plugin site for current pricing.

Method 3: Use a Flipbook Plugin

For magazines, catalogs, and brochures, a flipbook looks more engaging. Readers turn pages like a real book.

  • DearFlip: a popular free 3D flipbook plugin, with a paid version for more features.
  • Real3D FlipBook: a premium plugin with realistic page turning and many layouts.
  • FlowPaper: free flipbook viewer with a clean design.

Other Good PDF Embed Plugins

Which Method Should You Choose?

  • Choose the core File block if you embed a PDF only now and then and most visitors use desktop.
  • Choose PDF Embedder if you want PDFs to work well on mobile too.
  • Choose a flipbook plugin for catalogs, magazines, and brochures.

Want to embed other media too? See how to add YouTube videos to WordPress.

Frequently Asked Questions

Can WordPress embed a PDF without a plugin?

Yes. Use the core File block and turn on Show inline embed. It relies on the browser, so it may not display on some mobile devices.

Why does my embedded PDF not show on mobile?

Many mobile browsers do not support inline PDFs. Use a plugin like PDF Embedder, which uses its own viewer that works on phones.

Can I stop people from downloading my PDF?

You can hide the download button with premium plugins, but a determined user can still save the file. Do not upload anything you need to keep fully private.

Do embedded PDFs slow down my page?

Large PDFs can. Compress your PDF before uploading and avoid putting several big PDFs on one page.

Comments

6 responses to “How to Embed PDF Files in WordPress (3 Easy Ways)”

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Ankit Swami Avatar
    Ankit Swami

    Hey, Imtiaz, thank you fro providing such a helpful stuff. I was searching for the sam

  2. Kalpana goyal Avatar
    Kalpana goyal

    Simply amazing post nice plugin and working properly on new updates of wordpress..

    thanks for sharing this information I am looking for this from a long time.

  3. Rafaqat Avatar
    Rafaqat

    Great Plugin,I must give it a try because it will be easy (as you explained) to insert the external files without any extra codes.

  4. Max Avatar
    Max

    Hey, Imtiaz

    I didn’t even think this was possible.
    Only last week i want to include a PDF in my post, but I just had to link to it instead.

    I’m going to use this, thank bro.

  5. vipin singh Avatar
    vipin singh

    Hey Istiak ….thanks for give the information (^,^)

  6. Lucie Kruger Avatar
    Lucie Kruger

    I have tried and this worked smoothly, can provide tutorial on how to highlight text in WordPress post or page. We stuck in a situation when we need highlight text in the post, if you can provide this tutorial it will help a people like me a lot.