説明
PDF ファイルをアップロードして、サイトの投稿や固定ページに直接埋め込むことができます。画像の追加と同じくらい簡単に利用できます ! PDF ファイルは来のサイズと縦横比に合わせて自動的に本表示されます。幅を指定すると高さは自動的に計算されます。PDF Embedder プラグインはレスポンシブデザインに対応しているため、どの端末でも最適に表示されます。さらに、ブラウザーのサイズが変更されると、埋め込まれた PDF のサイズも自動的に調整されます。
このプラグインは PDF ファイルを埋め込むための独自の仕組みにより、文書の表示を柔軟に調整できます。
PDF ビューアーには、ドキュメント内を移動するための「次へ」「前へ」ボタンのほか、PDF ファイルの表示が小さすぎる場合に拡大できるボタンが用意されています。
PDF ファイルは既存の WordPress ページ内に埋め込まれるため、表示を柔軟に制御できます。また JavaScript などのファイルはすべて (信頼性が必ずしも保証されない Google などのサードパーティではなく) ご利用のサーバーから配信されます。そのため、読み込み速度が低下することなく PDF ファイルを高速に表示できます。
他の PDF 埋め込みプラグインは PDF を「iframe」内に埋め込むため、サイズ調整の柔軟性に欠けます。いっぽう、PDF Embedder はそのような仕組みではないため、あらゆる端末で閲覧体験が格段に向上する大きなメリットがあります。
無料版のプラグインにはユーザーが PDF をダウンロードするためのボタンはありません。プレミアム版ではダウンロード機能に加え、その他の便利な機能が利用できます。
もう一つのプレミアム機能として、PDF 内のリンクをクリックできる点があります。無料版プラグインでは、リンクをクリックすることはできません。
使い方
-
インストールして有効化したら、固定ページや投稿の編集画面で「メディアを追加」をクリックします。画像を追加するのと同じ手順で、代わりに PDF ファイルをドラッグ & ドロップしてください。
-
旧エディターで投稿に挿入すると、エディター上には次のようなショートコードとして表示されます:
-
[pdf-embedder url="https://example.com/wp-content/uploads/2024/01/Plan-Summary.pdf"] -
幅やツールバーの位置・表示などのデフォルトの表示設定は、設定 -> PDF Embedder から変更できるほか、ショートコードやブロックの属性でも変更できます。
個別の埋め込みでサイト全体のデフォルト設定を上書きしたい場合は、プラグインの使い方 (英語) をご覧ください。サイズ設定のオプションや、ショートコードをカスタマイズするその他の方法について案内があります。
プレミアム機能
PDF Embedder プレミアム版で利用できる機能:
- Download button in the toolbar
- Continuous scroll between pages
- Hyperlinks are fully functional
- Full screen mode
- Edit page number to jump straight to page
- Track number of downloads and views
- Mobile-friendly
- Secure option – difficult to download original PDF
- Removes wp-pdf.com branding
詳しくは wp-pdf.com をご覧ください !
Mobile-friendly embedding using PDF Embedder Premium
The free version will work on most mobile browsers, but cannot position the document entirely within the screen.
Our PDF Embedder Premium plugin solves this problem with an intelligent ‘full screen’ mode.
When the document is smaller than a certain width, the document displays only as a ‘thumbnail’ with a large ‘View in Full Screen’ button for the user to click when they want to study your document.
This opens up the document so it has the full focus of the mobile browser, and the user can move about the document without hitting other parts of the web page by mistake. Viewers can then Click Exit to return to the regular page.
The user can also swipe continuously between all pages of the PDF which is more natural than clicking the navigation buttons to navigate.
See our site wp-pdf.com for more details and purchase options.
Protect your PDFs with our premium document embedder version
Our PDF Embedder Premium plugin on its Pro plan provides the same simple but elegant viewer as the Basic version, with the added protection that it is difficult for users to download or print the original PDF document.
This means that your PDF is unlikely to be shared outside your site where you have no control over who views, prints, or shares it.
Optionally, add a watermark containing any text, including the logged in user’s name or email address to discourage sharing of screenshots.
See our site wp-pdf.com for more details and purchase options.
PDF Thumbnails
Our PDF Thumbnails plugin automatically generates fixed image versions of all PDF files in your Media Library, to use on your site as you wish.
You can use them as featured images in posts containing an embedded version of the PDF, or as a visual clickable link to download the PDF directly.
It also displays the thumbnail as the “icon” for the PDF in the Media Library, making it easy for authors to locate the PDFs they need to insert in a post.
See our site wp-pdf.com/thumbnails/ for more details and purchase options.
With thanks to the Mozilla team for developing the underlying pdf.js technology used by this PDF documents viewer plugin.
スクリーンショット



ブロック
このプラグインは1個のブロックを提供します。
- PDF Embedder Embed PDF files straight into your content.
インストール
Easiest way:
- Go to your WordPress admin control panel’s “Plugins > Add new” page
- Search for ‘PDF Embedder’
- Click Install
- Click Activate
If you cannot install from the WordPress plugins directory for any reason, and need to install from ZIP file:
- Upload directory and contents to the
/wp-content/plugins/directory, or upload the ZIP file directly in the Plugins section of your WordPress admin - Click Activate on the “Plugins” screen.
FAQ
-
How can I obtain support for this product?
-
We have instructions and a Knowledge Base on our website explaining common setup queries and issues.
We try to review daily and respond to support queries posted on the ‘Support’ forum here on the wordpress.org plugin page.
-
How can I change the Size or customize the Toolbar?
-
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 (applicable if you are using the Block Editor).
Resizing works as follows:
- If
width='max'the width will take as much space as possible within its parent container (e.g. column within your page). - If width is a number (e.g.
width="500") then it will display at that number of pixels wide.
注意: 高さと幅には、数値 (整数) または
maxのみを指定してください。それ以外の値を指定しても効果はありません。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 height will be calculated so that the document fits naturally, given the width already calculated.
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.
- If
-
プラグインのプレミアム版で利用できる機能:
- Download button in the toolbar
- Continuous scroll between pages
- Hyperlinks are fully functional, both within the PDF document and leading outside of the file to any other URL
- Full screen mode
- PDF ビューアーの表示時に、指定したページから直接表示できます
- 各 PDF ファイルのダウンロード数と閲覧数を追跡します
- Mobile-friendly
- Secure option – difficult to download original PDF
- 透かし – すべての PDF、または特定の PDF に任意のテキストを透かしとして追加できます
詳しくは wp-pdf.com をご覧ください !
-
Can I improve the viewing experience for mobile users?
-
Yes, our PDF Embedder Premium plugin has an intelligent ‘full screen’ mode.
When the document is smaller than a certain width, the document displays only as a ‘thumbnail’ with a large ‘View in Full Screen’ button for the user to click when they want to study your document.
This opens up the document so it has the full focus of the mobile browser, and the user can move about the document without hitting other parts of the web page by mistake.
Exiting the document is possible by clicking the “Full screen” icon in the toolbar again.See our website wp-pdf.com for more details and purchase options.
-
Can I protect my PDFs so they are difficult for viewers to download directly?
-
Not with the free or Basic/Plus pdf embedder premium versions – it is relatively easy to find the link to download the file directly.
A Pro version is available that encrypts the PDF during transmission, so it is difficult for a casual user to save or print the file for use outside your site.
See our website wp-pdf.com for more details and purchase options.
-
This is possible only in the PDF Embedder Premium version. As a workaround in the free version, you could add a direct link to the PDF beneath the embedded version.
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> -
Are Hyperlinks supported?
-
The Premium versions allow functioning hyperlinks – both internal links within the document, and links to external websites.
評価
貢献者と開発者
変更履歴
5.0.1
- Fixed: Occasional fatal errors that could be triggered during WordPress cron runs when other plugins (such as SEO indexers) parsed post content containing PDF Embedder.
- Fixed: A “source width is 0” JavaScript error that broke the PDF Viewer in hidden containers or when caching plugins served stale assets after 5.0.0.
5.0.0
- IMPORTANT: The minimum WordPress version has been raised to WordPress 6.6.
- IMPORTANT: The minimum PHP version has been raised to PHP 7.4.
- Added: Live PDF preview in the Block Editor that matches the front-end Viewer, with the file picker moved to the block sidebar.
- Changed: Compatibility with WordPress 7.0.
- Changed: The block has been updated to API version 3 for the new iframe-based Block Editor introduced in WordPress 6.9, so embedded PDFs continue to render correctly inside the editor preview.
- Changed: Updated the bundled PDF.js rendering library to v2.16.105, bringing years of upstream improvements, security fixes, and broader PDF compatibility, and aligning it with the Premium plugin.
- Changed: PDFs with image-heavy or scanned content (such as JPEG2000 or JBIG2) now render noticeably faster.
- Changed: The Block Editor PDF preview is now compatible with multilingual sites running Polylang or WPML where the admin’s home URL resolves to a language-prefixed path.
- Fixed: When the shortcode
titleattribute 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. - Fixed: A broken or empty PDF Viewer was displayed on the front end when post content tried to embed a PDF from the
/securepdfs/folder, which is created by PDF Embedder Premium’s Pro plan. The Viewer is now hidden in this scenario. - Fixed: Hardened various security checks across the plugin.
4.9.3
- Changed: Compatibility with WordPress 6.9.
- Changed: “Get Started” section in the plugin admin area can now be closed by clicking the same link in the plugin header again.
- Fixed: Adjust plugin links inside our block in the Block Editor.
- Fixed: Other minor code improvements and fixes, not visible but still valuable for plugin maintenance in the future.
4.9.2
- Changed: When just installed, the plugin was not saving its settings into the database upon activation. This caused the plugin to not work properly until the settings were saved at least once.
- Fixed: PDF Viewer Toolbar was displayed on the front-end even when disabled using block/shortcode attributes until the plugin settings were saved at least once.
4.9.1
- Fixed: The PDF Embedder block performance was improved slightly in the Block Editor.
- Fixed: Toolbar was not visible when configured to be displayed on hover.
- Fixed: Make sure that PDF URL has the domain when requesting the file from the server.
- Fixed: When the shortcode
heightattribute contained the valueauto– the PDF Viewer wasn’t correctly displaying the PDF file content. - Fixed: Do not output debug information in the browser console when the PDF file has some True Type fonts incorrect data. PDF Rendering is still fine.
4.9.0
- IMPORTANT: The minimum WordPress version has been raised to WordPress 6.1.
- IMPORTANT: The minimum PHP version has been raised to PHP 7.2.
- Added: A new dismissible “Get Started” section was added to the plugin settings page to help you get started with the plugin.
- Changed: Compatibility with WordPress 6.7.
- Changed: Various plugin admin area improvements.
- Changed: Further improvements to the PDF Embedder block in the Block Editor.
- Fixed: Address the issue with the WordPress Interactivity API and mobile navigation when the site works in SCRIPT_DEBUG mode.
- Fixed: Dropdown menus when opened were not able to “cover” the PDF Viewer toolbar due to the z-index value set for the toolbar.
- Fixed: Prevent occasional fatal errors from happening when the plugin is initiated during the cron request.
4.8.2
- Fixed: PDF files containing the text in certain languages (like Korean or Japanese) were not rendered properly due to a bug in PDF.js library incorrectly handling passed options.
4.8.1
- Fixed: Make sure that when
widthandheightshortcode/option values have an incorrect value, the plugin does not generate a fatal error.
4.8.0
- Changed: Compatibility with WordPress 6.5.
- Changed: Make the PDF Embedder block extensible.
- Changed: Improved the look and feel of the PDF Embedder block inside the Block Editor.
- Changed: Removed some unnecessary files from the released version to decrease the zip size.
- Fixed: Improved performance for the majority of sites by not loading an internal Action Scheduler library (which was also updated to 3.7.4) when it is not used.
- Fixed: Hide the Toolbar Hover options in the block if the “No Toolbar” option is chosen.
- Fixed: Security fixes in the way certain PDF files are rendered to prevent arbitrary scripts execution.
4.7.1
- Changed: The logic for displaying notices was adjusted.
- Fixed: Improved handling of incorrect URLs supplied to the shortcode – PDF viewer won’t even try to render it.
4.7.0
- IMPORTANT: The minimum WordPress version has been raised to WordPress 5.8.
- IMPORTANT: The minimum PHP version has been raised to PHP 7.0.
- IMPORTANT: If you are using a caching plugin and added PDF Embedder JS files to the exclusion list, you will need to do that again due to changed file names.
- Added: New option for the toolbar location called “No Toolbar” is now available. It allows you to hide the toolbar completely.
- Changed: Plugin admin area interface has been refreshed.
- Changed: The plugin has been tested with the latest version of WordPress.
- Changed: Block was rewritten from scratch, and now it looks better in the Block Editor, and also syncs its default settings with global plugin options.
- Fixed: A lot of strings in the plugin have been fixed to make them translatable and accurate.
- Fixed: Several security related improvements have been introduced (data sanitization and escaping).
- Fixed: Text in PDF files in certain languages (like, Japanese and Korean) was not rendered correctly.
The full changelog is located in the changelog.txt file.
