Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk10 min

How to Embed a PDF Viewer in WordPress (Without Forcing Downloads)

Embed PDFs directly in WordPress with the native File block or choose a dedicated viewer for responsive sizing, print, fullscreen, analytics and self-hosted privacy. This guide explains setup, fallback links, access requirements and common fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The quickest way to show a PDF inside a WordPress page is the built-in File block: upload or select the document, enable its inline embed, and publish. Use a dedicated viewer block when you need controls such as print, fullscreen, configurable dimensions, analytics, or a more specialized mobile experience. Whichever method you choose, keep a normal “Download the PDF” link below the viewer so visitors still have an accessible fallback.

Choose the right WordPress PDF method

WordPress supports inline PDF display without a plugin, but the best approach depends on the document’s privacy, the controls you need, and whether you can make the file publicly reachable. The comparison below separates the practical options.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Method Setup File access Controls and behavior Fallback and privacy
Native File block Built into WordPress; no plugin Served from your WordPress Media Library Inline viewer or download link/button; fewer advanced controls Simple link fallback; remains on your site
Adobe-based Gutenberg viewer Install a block plugin and obtain a free Adobe PDF Embed API key The viewer must be able to retrieve the PDF from your site Inline view, download, print, fullscreen and Google Analytics event tracking are documented controls Richer interface; account/API setup is required
PDF.js Gutenberg viewer Install a free block plugin Normally served from your WordPress site Responsive viewer with configurable width, height and alignment Provides a download link when JavaScript is disabled
Hosted iframe or Google Docs Viewer Install an iframe-style plugin and paste a PDF URL PDF must be reachable from the public internet Convenient embedding; mobile display may use Google Docs Viewer Google Docs Viewer can occasionally fail; unsuitable for confidential files
Self-hosted plugin viewer Install a viewer plugin and choose a Media Library file or shortcode File stays under your site’s hosting control In-page reading without requiring an Adobe Acrobat or other third-party account Avoids sending the document to an external viewer service

For a brochure, manual or public report, start with the native File block. Select an Adobe-based or PDF.js block when presentation controls matter. Use an iframe service only for a public, non-sensitive PDF where occasional viewer failure is acceptable. Choose a self-hosted viewer when keeping document traffic on your own infrastructure is the priority.

Embed a PDF with WordPress’s File block

The File block is the fastest route and does not add another plugin to maintain. It can display the PDF inline and can also expose a download link or button.

#1 Best Overall
Amazon Kindle 16 GB (2024 model) - Light and compact, with fast page turns, and high contrast ratio - Matcha
  • Light and compact - With adjustable brightness, high contrast ratio, and fast page turns.
  • Effortless reading in any light - Read comfortably with a 6“ glare-free display, adjustable front light—now 25% brighter at max setting—and dark mode.
  • Escape into your books - Tune out messages, emails, and social media with a distraction-free reading experience.
  • Read for a while - Get up to 6 weeks of battery life on a single charge.
  • Take your library with you – 16 GB storage holds thousands of books.

Step 1: Upload the PDF

  1. In the WordPress dashboard, open Media → Add New.
  2. Upload the PDF, or confirm that the document already exists in the Media Library.
  3. Open the uploaded item and check its file URL. You will use the Media Library item rather than copying a local computer path.

Step 2: Insert the block

  1. Edit the post or page where the document should appear.
  2. Select the plus button and add the File block.
  3. Choose Upload for a new file or Media Library for an existing PDF.
  4. After WordPress inserts the file, leave the block’s inline embed enabled if you want readers to view it without leaving the page.

Step 3: Keep a download option

Use the block’s download-link or button setting when you want visitors to save a copy. Put a visible text link such as Download the PDF immediately below the viewer as well. A direct link helps people using assistive technology, browsers that do not render PDFs inline, and devices where the embedded frame is inconvenient.

Step 4: Publish and test

  1. Preview the page at desktop and mobile widths.
  2. Open the page in a private or logged-out browser window and select both the embedded document and the download link.
  3. Turn off browser extensions that block scripts temporarily if the preview appears blank; this distinguishes a site issue from a local browser issue.

Use a dedicated page when the PDF needs a stable web address. You can replace the underlying Media Library file later while keeping the page URL available for bookmarks, menus and printed references.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
ECOPAD 10.1 Inch Tablet, Android 15 Tablets 12GB(4+8) RAM / 64GB ROM / 1TB SD Card Expansion, 1280x800 IPS HD Touchscreen, 6000mAh Battery, Bluetooth 5.0, Dual Cameras, GMS, Dual Band WiFi, Black
  • Latest Android Tablet - This android tablet features a quad-core processor, android 15 OS and a 10.1" IPS screen, its smooth operation enables seamless video playback, gaming, and multitasking.
  • 12GB RAM/64GB ROM + 1TB Expand - With ample storage capacity that can be expanded up to 1TB via SD card (sold separately), you can confidently store all your photos, videos and files without concerns.
  • IPS Display & Dual Camera - Equipped with 10.1" IPS 1280x800 HD screen, 2.0MP front camera/8.0MP rear camera, this android 15 tablet offers you a delightful experience while watching movies, reading books, or making video calls.
  • Long Battery Life - Built-in 6000mAh lithium battery, this android tablet provides up to 8 hours of uninterrupted video playback, enabling you to use it for longer periods without any interruptions.
  • Worry-Free Service - We offer comprehensive support to put your mind at ease. Our warranty lasts for 1 year. If you have any questions, please don't hesitate to contact us. We will respond promptly and assist you in resolving any issues.

Use an Adobe-based Gutenberg PDF viewer

An Adobe-based Gutenberg block builds on the official PDF Embed API and adds controls that the basic File block does not expose. Its documented options include inline reading, download, print, fullscreen and Google Analytics event tracking.

What you need

  • Administrator or plugin-management access to the WordPress site.
  • A free Adobe PDF Embed API key.
  • A PDF that the viewer can retrieve from the site.

Installation and insertion

  1. In WordPress, open Plugins → Add New and search for the Adobe-based PDF Embed block plugin.
  2. Install and activate it, then open the plugin’s settings and enter the free API key.
  3. Edit the target page, open the block inserter and add the plugin’s PDF viewer block.
  4. Select or paste the PDF source requested by the block, then set the viewer’s size and alignment.
  5. Choose whether readers can download, print or expand the document to fullscreen. Enable Analytics events only if your site already has a compatible Google Analytics implementation and your privacy notice covers that measurement.
  6. Save, preview and test the page while logged out.

This route is appropriate when visitors need a polished toolbar or when you need to measure viewer actions. The API key requirement makes setup more involved than the native block; do not present it as a no-configuration solution.

Rank #3
HNVHNV Android Tablet 7 Inch Tablet, E-Reader, 6GB RAM 32GB ROM 1TB Expansion, Quad-core Processor, Dual Camera, WiFi, Bluetooth, Parental Control (Pink)
  • 【Android Tablet】Equipped with the latest Android system, it has stronger compatibility, faster response speed and smoother operation. It is GMS certified, pre-installed with Google Play, and supports social applications such as Facebook, Twitter, YouTube, and TikTok. It is very suitable for watching videos, online chatting, reading e-books, etc.
  • 【Smooth Performance】This tablet is equipped with a 1024x600 IPS touch screen, Unisoc SC7731E quad-core processor, 6GB memory (2GB + 4GB virtual memory), 32GB ROM, and the tablet storage space can be expanded to 1TB using an SD card, which can store everything you need.
  • 【Powerful Function】This is a cost-effective tablet. Affordable price and excellent configuration. Equipped with 2MP+5MP dual cameras, Bluetooth, 5G/2.4G dual-band WiFi, FM radio, speakers, 3.5mm headphone jack, etc. Suitable for reading, photography, video, music, etc., meeting most of your daily needs.
  • 【Child-friendly functions and parental control】Pre-installed Google Kids Space application, providing rich content suitable for different age groups. Equipped with a parental control mode, it allows you to filter content, set educational goals, and manage screen time limits based on your child's age, providing a safe use environment that does not require constant supervision.
  • 【Portable & Lightweight & Protective Case】​​- The tablet body is slim and lightweight, easy to carry. It can be easily put into a bag, backpack or even back pocket. In addition, the durable and environmentally friendly protective case can effectively protect your tablet from drops, scratches and dust. You can use it anywhere you want.

Use a PDF.js Gutenberg viewer

A PDF.js block uses Mozilla’s PDF.js library and is described as a free, responsive Gutenberg viewer. Editors can configure width, height and alignment, and the block supplies a download link if JavaScript is disabled.

Setup

  1. Open Plugins → Add New, search for PDF Viewer Block for Gutenberg, and install and activate it.
  2. Edit the page and insert the plugin’s PDF viewer block from the block inserter.
  3. Select the PDF from the Media Library or provide the file source requested by the block.
  4. Set a width and height that leave enough room for page controls on desktop and mobile. Choose the alignment that fits the surrounding content.
  5. Publish or update the page, then test with JavaScript disabled or blocked to confirm that the download fallback is visible.

PDF.js is a good middle ground: it avoids an Adobe API key while providing more layout control than the basic File block. The fallback link is particularly useful for strict browsers, assistive technology and visitors who block scripts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Amazon Kindle Scribe Colorsoft 64GB (newest model) — 11” paper-like color display — Write in notebooks, docs, and books. Read in any light. Pen included - Graphite
  • Our most advanced Kindle Scribe – Features an 11” Colorsoft display with front light, built-in notebook, AI tools, and support for popular cloud services.
  • Bring ideas to life in color – The custom-built Colorsoft display delivers high-contrast, paper-like color that’s easy on the eyes without distracting flashes when writing.
  • Get a pen-on-paper feel: The textured surface and responsive display create a smooth, paper-like writing experience. Plus, the included pen never needs charging and has a built-in eraser and shortcut button for tools like the highlighter.
  • More room to read, write, and think – Just 5.4mm thin and 400g light, with fluid performance and a large 11" display that gives you space to work comfortably.
  • Get more out of your notes – Take notes in the built-in notebook, then use AI to find information, ask questions about what you’ve written, and generate summaries. You can also clean up handwriting or convert it to text.

Embed a public PDF with an iframe or Google Docs Viewer

Iframe-style plugins accept a world-reachable PDF URL and place the document in an iframe. For mobile visitors, the plugin may hand the file to Google Docs Viewer. This is a convenience method, not a privacy solution.

Procedure

  1. Upload the PDF to the Media Library or another location that permits unauthenticated access.
  2. Copy the complete HTTPS URL to the PDF.
  3. Install and activate the Embed PDF Viewer plugin, then insert its block or shortcode in the page editor.
  4. Paste the PDF URL and configure the iframe dimensions if the plugin exposes them.
  5. Add a normal download link beneath the iframe.
  6. Test from a logged-out browser and from a mobile device.

Important limitations

  • A URL that works only for logged-in users, behind a password, or on a private network cannot be fetched by the hosted viewer.
  • Google Docs Viewer can occasionally fail to load. Reloading may resolve a transient failure, but your page should still offer the direct PDF link.
  • Do not use this approach for confidential contracts, private customer records or unpublished material. The document must be publicly reachable and may be processed by an external service.

Use a self-hosted viewer plugin

A self-hosted viewer plugin inserts a PDF from the WordPress Media Library through a block or shortcode. PDF Embedder’s documentation emphasizes in-page reading without requiring visitors to have an Adobe Acrobat or other third-party account, and contrasts self-hosting with iframe, Google viewer and hosted services that send documents to servers outside the site owner’s control.

Best Value
Sale
Gleeso Tablet, 2026 Latest 10 Inch Android 16 Tablet, 24GB+64GB+1TB TF, 6000mAh Battery, Fast Charging, HD Display, Widevine L1, Dual Camera, Face ID, Split Screen, Light, Portable
  • 【High Performance Android 16 Tablet for Smooth Work & Entertainment】:Looking for a responsive daily electronics computer? This Android 16 tablet is exactly the ideal tablet for adults you need. Powered by upgraded hardware and the newest android 16 system, this 10 inch tablet runs extremely smoothly. It loads apps fast, plays games without lag, and handles multitasking effortlessly. Whether for office work, web browsing or casual entertainment, this steady Android tablet always performs well. It’s a solid and budget-friendly tablet for your daily use.
  • 【24GB+64GB Large Storage & 1TB Expandable Memory Tablet】:Storage issues are totally gone with this 10 inch tablet! Equipped with 24GB RAM and 64GB internal storage, this robust Android tablet can run multiple apps and games simultaneously without slowing down. You can expand the memory up to 1TB with a TF card (not included) to store countless photos, videos and documents. Functional and user-oriented, this tablet for adults is a perfect daily electronics computer for work, study and entertainment.
  • 【6000mAh Long-Lasting Battery & Fast Charging 10 Inch Tablet】:This 10 inch tablet packs a 6000mAh large battery to support your all-day use! It keeps running steadily for video streaming, office work and web browsing, no need to charge frequently. The fast charging feature also saves your precious time, letting you get fully powered up quickly. Lightweight and sturdy, this trust-worthy tablet is a must-have daily electronics computer, and the reliable tablet fits both indoor and outdoor use perfectly.
  • 【10-Inch HD Display & Widevine L1 Certified Android Tablet】:Get a great watching experience on this tablet! The 10-inch 1280*800 HD screen delivers bright and clear visuals for reading, scrolling and video watching. Certified with Widevine L1, this premium tablet supports true full HD streaming on Netflix, Prime Video and other mainstream platforms, no more fuzzy compressed images. As a practical daily electronics computer, this 10 inch tablet brings you crisp, high-quality viewing anytime at home.
  • 【Dual Camera & Stereo Speaker Tablet for Multi-Scenario Use】:Designed for daily adult life, this all-round tablet comes with dual cameras, fast Face ID unlock and dual stereo speakers. The dual cameras support clear video calls and daily photography, and Face ID lets you unlock your device in seconds safely. Matched with immersive stereo sound, this Android tablet greatly upgrades your experience of watching movies, listening to music and chatting online. This versatile android 16 tablet is your perfect portable electronics computer for home, office and travel.

Block-based insertion

  1. Install and activate the self-hosted PDF viewer plugin.
  2. Edit the page and insert its PDF block.
  3. Choose the PDF from the Media Library.
  4. Set the viewer dimensions and toolbar options offered by the plugin.
  5. Save the page and test it while logged out.

Shortcode insertion

If the plugin documents a shortcode, copy the exact shortcode it generates rather than typing attributes from memory. Insert it in a Shortcode block (or the editor location supported by your WordPress setup), select the Media Library file as instructed, and preview the result. Shortcodes are useful when the same viewer configuration must be reused across several pages, but keep a record of which PDF URL each page references so replacements do not silently break older content.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Configure size, controls and accessibility

Set dimensions for real content

A viewer that is too short forces constant scrolling; one that is too wide can overflow a phone screen. Start with the plugin’s responsive or percentage-width option when available. If only fixed dimensions are offered, preview at a narrow mobile width and verify that the toolbar and page controls remain usable. Do not hide horizontal overflow with CSS before testing; that can make pages unreachable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Decide whether to expose download and print

Allow downloads when readers need an offline copy, must share the document, or may be using a browser that cannot render it. Hide the download control only when there is a clear policy reason, and understand that an openly viewable PDF cannot be made fully copy-proof: a visitor can still save screenshots or retrieve a publicly delivered file. Expose print when the document is designed for paper use; otherwise, leaving print available can create an unreviewed paper version of frequently changing information.

Provide meaningful surrounding text

  • Give the page a descriptive heading and explain what the PDF contains, its date or edition, and its approximate file size when that information matters.
  • Use link text that identifies the document, such as “Download the 2026 safety manual (PDF),” rather than “click here.”
  • Do not rely on the viewer toolbar alone to communicate the document’s title or purpose.
  • Offer an HTML alternative for critical instructions, forms or data when excluding people who cannot use embedded PDF controls would create a barrier.

Privacy and access decisions

Determine who should be able to retrieve the file before selecting a viewer. The native block, PDF.js and a self-hosted plugin can keep delivery on your WordPress hosting, subject to your host, caching layer and security configuration. A hosted iframe requires a publicly reachable URL and introduces an external document-processing path. An Adobe-based viewer requires an API key and uses Adobe’s embed infrastructure.

Authentication is not created by embedding. If a Media Library URL is public, copying the URL can expose the file even when the page itself is difficult to find. If the PDF must remain private, use WordPress access controls or a document system that issues authorized, expiring links; do not paste a protected URL into a hosted viewer and assume it will inherit your login session.

Troubleshoot a blank or broken viewer

The PDF downloads instead of displaying

  • Confirm that the File block’s inline embed is enabled.
  • Check that the PDF URL returns the actual PDF rather than a login page, redirect loop or permission error.
  • Test another browser. Some browsers or extensions disable embedded PDF rendering.
  • Keep the direct download link so the page remains usable even when inline display is unavailable.

The plugin block is missing

  • Verify that the plugin is activated under Plugins → Installed Plugins.
  • Confirm that you inserted the plugin’s block, not a similarly named block from another viewer.
  • Check whether your user role is allowed to install plugins and whether the plugin supports your current editor configuration.

The Adobe-based viewer reports an API problem

  • Recheck the free API key in the plugin settings and remove accidental spaces.
  • Confirm that the key is configured for the site where the block is running.
  • Inspect the browser console only if you are comfortable troubleshooting JavaScript; otherwise, temporarily switch to the native File block or PDF.js block to keep the document available.

The iframe or Google viewer never loads

  • Open the PDF URL in a private browser window. If it requires a login, the hosted service cannot retrieve it.
  • Reload once to rule out the documented intermittent Google Docs Viewer failure.
  • Replace the iframe with a native or self-hosted method for sensitive files or persistent failures.

Mobile readers cannot use the document

  • Check the page on an actual phone, not only a resized desktop window.
  • Reduce fixed height if the viewer traps the user in a small scroll area, or use the plugin’s responsive setting.
  • Ensure the download link is visible outside the embedded frame.

Maintain embedded PDFs safely

  1. Keep the page URL stable and replace the underlying Media Library file when an updated edition should occupy the same address.
  2. Use a new file and a new link when historical versions must remain available; label each edition clearly.
  3. After replacing a file, test the page in a logged-out window and check both the viewer and download link.
  4. Review old pages for links to deleted PDFs before removing files from the Media Library.
  5. Retest after WordPress, theme or viewer-plugin updates, especially when the page is used for a public form, policy or compliance document.

A practical decision checklist

  • Need the simplest solution: choose the native File block.
  • Need print, fullscreen, download controls or analytics: use an Adobe-based Gutenberg viewer and configure its free API key.
  • Need responsive dimensions and a JavaScript fallback: use a PDF.js Gutenberg block.
  • Have a public, non-sensitive URL and accept occasional hosted-viewer errors: an iframe or Google Docs Viewer plugin can work.
  • Need to keep document delivery under your site’s control and avoid a third-party account: use a self-hosted viewer plugin.
  • Regardless of method: add a descriptive heading, a visible download link, and test as a logged-out mobile visitor.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.