WordPress GuideBuild → PDF Viewer

How to add a WordPress PDF viewer to your site

Embedding PDFs in WordPress should be easy—but the default experience? Not so much. By default, WordPress links to the PDF file, which forces users to download or open it in their browser. That’s not ideal if you want visitors to read your PDF right on the page.

Fortunately, there are plugins and tools that make it easy to display PDFs directly inside your WordPress posts and pages. In this guide, you’ll learn exactly how to add a WordPress PDF viewer that works on all devices and looks great on your site.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

Why embed a PDF in WordPress?

PDFs are perfect for sharing documents like:

When you embed a PDF viewer, your content stays on the page instead of interrupting the user’s experience. That means:

Now let’s look at the best ways to make that happen.

Option 1: Use the PDF Embedder plugin (free + simple)

If you just need a clean, responsive PDF viewer that works out of the box, PDF Embedder is a great option. It uses JavaScript to embed PDFs with a simple shortcode and offers features like page navigation and zoom.

Step 1: Install and activate the plugin

Step 2: Upload your PDF

Step 3: Add the PDF to a post or page

Paste this shortcode anywhere in your content:

[pdf-embedder url=”https://yoursite.com/wp-content/uploads/2025/03/your-file.pdf”]

You’ll see a responsive PDF viewer with basic controls for page navigation and zooming.

Optional: Use the block editor

If you’re using Gutenberg, just add a Shortcode block and paste the same shortcode. Easy.

Upgrade for more features

The premium version offers:

But for most use cases, the free version is more than enough.

Option 2: Use Formidable Forms to display PDFs from form entries

If you’re working with user-generated PDFs—like invoices, applications, or custom reports—Formidable Forms is the most powerful option. It lets you generate PDFs from form data and display them anywhere on your site.

Step 1: Install Formidable Forms and the PDF add-on

Step 2: Create a form and PDF template

Step 3: Display the PDF on your site

You can:

This setup is ideal for dynamic PDFs personalized to each user.

Option 3: Use the built-in File block (basic option)

WordPress includes a File block in the Block Editor that lets you upload and link to a PDF. It’s fast, but it only adds a download button—no in-page viewer.

Good for quick downloads, but not useful if you want the PDF to appear inline.

Option 4: Embed with an iframe (no plugin)

If you prefer to avoid plugins, you can embed PDFs using an HTML iframe:

<iframe src=”https://yoursite.com/wp-content/uploads/2025/03/your-file.pdf” width=”100%” height=”600px”></iframe>

This works in most modern browsers, but it doesn’t offer extra features like zoom or page navigation. Plus, it might not display properly on mobile.

Use this only if you want a very minimal, plugin-free setup.

Tips for embedding PDFs in WordPress

Additional resources

How to build a WordPress site →

A complete beginner’s guide that covers 9 key steps to a successful launch

How to embed a YouTube video into a WordPress webpage →

Learn how to easily embed YouTube videos into your WordPress posts and pages.

How to use WordPress Gutenberg blocks →

A complete beginner’s guide to Gutenberg blocks