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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To display a PDF inside a WordPress page or post, install a PDF viewer plugin, add its block in the editor, and choose the PDF from your Media Library. If you use the Classic Editor or a compatible page builder, use the plugin’s shortcode instead. Add a separate link to the PDF as a fallback for readers who want to open or download it outside the viewer.

Embed a PDF with a WordPress block

  1. In your WordPress dashboard, install and activate a PDF viewer plugin, such as PDF Embedder or PDF.js Viewer.
  2. Edit the page or post where you want the document to appear.
  3. Insert the plugin’s PDF viewer block.
  4. Choose an existing PDF from the Media Library, or upload one using the block’s file picker.
  5. Preview the page and check that the document and the controls you need are visible.

PDF Embedder documents this block-based workflow and provides an editor preview. A PDF link added through WordPress alone is not the same as a plugin viewer embedded in the page.

Use a shortcode in the Classic Editor or a page builder

If your editor or page builder supports regular WordPress shortcodes, add the viewer plugin’s shortcode to the content or a shortcode element. For example, PDF Embedder documents this form:

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

[pdf-embedder url="https://example.com/wp-content/uploads/2024/01/Plan-Summary.pdf"]

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Replace the example address with the URL of your own PDF. Check the plugin’s current documentation for the shortcode and options supported by the version you install.

Embed a PDF hosted on another site

Use a direct URL to the PDF file, not a link to a sharing page or a document preview page. The remote host must also permit your WordPress site to fetch the file; a direct-looking URL will not work if access is blocked by the host.

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

PDF.js Viewer recommends using a WordPress attachment ID where possible. When you do use a remote file, test the published page from a reader’s perspective rather than relying only on the editor preview.

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

Choose a viewer based on the controls you need

Plugins differ in how readers navigate and use a document, and in which controls are included in their free or paid editions. Check the features you need before choosing one.

Rank #3
SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
  • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
  • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
  • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
  • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
  • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity
Option Documented workflow or features Important qualification
PDF Embedder Block and shortcode workflows; editor preview. Its WordPress.org listing says links inside PDFs are not clickable in the free version and a toolbar download button is a Premium feature.
PDF.js Viewer Shortcode settings for dimensions, fullscreen, download, print, opening the file, and zoom. These are documented configurable controls; choose settings that fit your site and verify them in your installation.
A Gutenberg block using Adobe’s PDF Embed API The WordPress.org listing describes inline or iframe display, print, download, fullscreen, and event tracking. Check current API terms and requirements before adopting it; the listing alone does not establish all operational or privacy implications.

For example, PDF.js Viewer documents a shortcode with options for viewer size and controls:

[pdfjs-viewer attachment_id=123 viewer_width=600px viewer_height=700px fullscreen=true download=true print=true]

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

The values are examples, not universal recommendations. Confirm the available parameters and acceptable values in the plugin’s current listing or documentation.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Add a direct PDF link as a fallback

Place a normal link to the PDF near or below the embedded viewer. That gives readers another way to access the document if the embed is unsuitable for them or a control they need is unavailable. PDF Embedder specifically documents a separate link as a workaround for the free version’s missing toolbar download button.

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

Use link text that identifies the document, such as “Download the plan summary PDF,” rather than a bare URL. Test the link as well as the viewer.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$188.90
SaleBestseller No. 4
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99

Check the result before publishing

  • Confirm the correct PDF appears on the published page.
  • Try the viewer controls you intend to offer, such as zoom, fullscreen, print, or download.
  • Open the separate PDF link and confirm it reaches the intended file.
  • If the PDF is hosted remotely, check that the host allows your site to fetch it.
  • Check the current plugin documentation and test the page with your theme and site setup. The cited listings do not establish compatibility across all themes, hosts, and browsers, or guarantee accessibility, security, or performance.

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.