| 开发者 |
levertechadmin
lionsher nathansingh chrisakelley dimensionmedia slaFFik jaredatch smub |
|---|---|
| 更新时间 | 2026年8月15日 00:59 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
[pdf-embedder url="https://example.com/wp-content/uploads/2024/01/Plan-Summary.pdf"]
Site-wide defaults, such as width and toolbar position, live under Settings -> PDF Embedder, and any single embed can override them with its own block settings or shortcode attributes. See the Plugin Instructions for sizing options and other ways to customize.
Works with membership, e-commerce, and course plugins
PDF Embedder renders through a regular shortcode and block, so the viewer works anywhere your post content does, including pages that other plugins restrict or sell access to.
"One client wanted to display PDF newsletters in a way that was clean, user-friendly, and easy to scroll through. That's when I discovered WP PDF Embedder. It does the job beautifully, making PDFs look professional and effortless to navigate. Since then, it has become my go-to recommendation for any client who needs to showcase PDF content on their website." — Vera Schafer "I have been using PDF Embedder for well over ten years. It's just a great app. Can't recommend it enough." — Rich Calo "I have been using this plugin (both the free version and the pro version) for a number of years on various clients' websites. It is easy to set up, does what it needs to and just works the way a plugin should. I highly recommend it." — DebsWebs "I've been using PDF Embedder Secure for 3 years now, and it helped me sharing my paid content securely, preventing malicious people from buying my PDF files and then sharing them illegally everywhere. PDF files are chopped, digested, watermarked, unaccessible even if someone finds the direct link." — Daniele BenedettelliGo further with PDF Embedder Premium In the free plugin, there is no download button and links inside the PDF are not clickable - the viewer is intentionally simple to fulfill the "read online" goal. PDF Embedder Premium adds those and more:
/wp-content/plugins/ directory, or upload the ZIP file directly in the Plugins section of your WordPress adminPDF Embedder is a WordPress PDF viewer plugin: upload your PDF file to the Media Library, add the PDF Embedder block where you want the document, and pick the file from the block sidebar. In the Classic Editor or any page builder, use the [pdf-embedder url=""] shortcode instead. The document then displays right on the page for your visitors.
Yes. Pass any direct PDF URL to the shortcode's url attribute or pick it in the block - the file does not have to be in your Media Library. It needs to be a direct link to the .pdf file itself (for example, a direct Dropbox link), not a sharing or preview page, and the remote host must allow other sites to fetch the file.
We have instructions and a Knowledge Base on our website explaining common setup queries and issues. We review the 'Support' forum here on the wordpress.org plugin page daily and respond to questions there.
See Settings -> PDF Embedder in your WordPress admin to change site-wide defaults. You can also override individual embeds by modifying the shortcode attributes or using block options (if you use the Block Editor). Resizing works as follows:
width='max' the width will take as much space as possible within its parent container (e.g. column within your page).width="500") then it will display at that number of pixels wide.max; anything else has no effect.
In all cases, if the parent container is narrower than the width calculated above, then the document width will be reduced to the size of the container.
The plugin then calculates the height so the document fits naturally at that width.
The Next/Prev toolbar can appear at the top or bottom of the document (or both or none), and it can either appear only when the user hovers over the document or it can be fixed at all times.
See the Plugin Instructions for more details about sizing and toolbar options.
No. The viewer is fully self-hosted: everything is served from your own server, with no calls to the Google Docs Viewer or any other third-party service, and the viewer's files are loaded only on pages that actually contain an embedded PDF. Pages without a PDF are not affected at all.
Yes. The plugin includes a PDF viewer block, the easiest way to embed PDF files in the Block Editor. Add the PDF Embedder block to a post or page, choose a PDF file from the block sidebar, and the block shows a live preview of the document while you edit. The preview matches the front-end Viewer, so the published page looks the same as what you see in the editor.
The PDF Embedder Premium plugin includes a PDF Embedder widget for Elementor. It offers the same options as the block and shows a live PDF preview inside the Elementor editor.
With the free plugin, you can embed PDFs in Elementor by placing the [pdf-embedder] shortcode into Elementor's Shortcode widget.
Yes. Any builder that can output regular WordPress shortcodes, such as Divi, Beaver Builder, or Bricks, can display the PDF Viewer. Add the [pdf-embedder url=""] shortcode to a text or shortcode element in your builder, and the document renders on the front end the same way it does anywhere else on your site.
See the shortcode documentation for all available attributes.
In the free plugin, links inside the PDF are not clickable. The Premium versions allow functioning hyperlinks: both internal links within the document and links to external websites.
This is possible only in PDF Embedder Premium. As a workaround in the free plugin, you can add a direct link to the PDF beneath the embedded document.
To do this, copy the URL from the pdf-embedder shortcode and insert it into a link using HTML such as this:
<a href="(url of PDF)">Download Here</a>
Yes, our PDF Embedder Premium plugin has a full screen mode. When the document renders narrower than a width you set, as it does on most phones, it displays as a thumbnail with a large "View in Full Screen" button. Tapping it gives the document the full focus of the mobile browser, so readers can move around it without hitting other parts of the page by mistake, and swipe between pages instead of clicking buttons. Tapping the full screen icon in the toolbar returns them to your page. See wp-pdf.com/pricing for plans and pricing.
A download button, working hyperlinks, continuous scroll, full screen mode with swipe navigation on mobile, jump-to-page, full-text search inside PDF documents, view and download tracking of each PDF file, an Elementor widget, secure viewing, and watermarks with any text, applied globally to all PDFs or selectively to only some of them. Compare the Basic, Plus, Pro, and Elite plans on wp-pdf.com/pricing. Every plan comes with a 14-day money-back guarantee.
Not with the free version or the Basic/Plus plans of PDF Embedder Premium: it is relatively easy to find the link to download the file directly. The Pro plan encrypts the PDF during transmission, so it is difficult for a casual user to save or print the file for use outside your site. You can also add a watermark containing any text, including the logged-in user's name or email address, to discourage sharing of screenshots. See wp-pdf.com/pricing for plans and pricing.
title attribute was not provided, PDF files with Arabic, Chinese, or other non-ASCII characters in their file names had the URL-encoded form (e.g. %D9%83%D8%AA%D8%A7%D8%A8) shown as the fallback link text before the PDF Viewer loaded./securepdfs/ folder, which is created by PDF Embedder Premium's Pro plan. The Viewer is now hidden in this scenario.height attribute contained the value auto - the PDF Viewer wasn't correctly displaying the PDF file content.width and height shortcode/option values have an incorrect value, the plugin does not generate a fatal error.