Опис
The “PDFjs Viewer for Elementor & Gutenberg” plugin allows you to embed PDF files into your pages with ease. It adds a PDF Viewer widget to Elementor and a PDF Viewer block to Gutenberg, so you can add PDF files to your website without any coding knowledge. Your visitors can read, search, zoom and print PDF files right on the page.
The plugin is user-friendly and easy to use. Upload your PDF file to the WordPress media library and add it with the PDF Viewer widget or block.
Features:
- PDF Viewer widget for Elementor
- PDF Viewer block for Gutenberg (works without Elementor)
- PDF file from the media library or by URL
- Elementor dynamic tags, for example a custom field with the PDF URL
- Initial zoom, initial page and sidebar
- Hide the toolbar, download or print buttons
- Viewer background color
- Pages made with the “PDF Viewer for Elementor” plugin keep working
- Mozilla PDF.js 6.4.299 viewer
Third-party libraries
- PDF.js 6.4.299 by Mozilla, Apache License 2.0, https://github.com/mozilla/pdf.js
Блоки
Цей плагін надає 1 блок.
- PDF Viewer Embed a PDF file with the PDF.js viewer.
Встановлення
- Install the plugin through the ‘Plugins’ screen in WordPress, or upload the plugin files to the
/wp-content/plugins/pdfjs-viewer-for-elementordirectory. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Elementor: add the PDF Viewer widget from the Basic category and choose a PDF file.
- Gutenberg: add the PDF Viewer block and choose a PDF file.
Часті питання
-
The PDF file is not loaded, what can I do?
-
PDF.js can open only PDF files from your own site. Files from another domain or a CDN are blocked by the browser. Upload the file to your media library and choose it from there.
-
Which browsers are supported?
-
Current versions of Chrome, Edge, Firefox and Safari 18 or newer. Old browsers, like Safari on iOS 15, are not supported by PDF.js.
-
Yes. The browser needs the file to show it, so hiding the button doesn’t protect the file. Don’t publish files that must stay private.
-
I used the “PDF Viewer for Elementor” plugin, do I need to rebuild my pages?
-
No. Deactivate that plugin and the PDF viewers on your pages are shown by this plugin. PDF files from other sites are shown as a link.
-
Do JavaScript actions in PDF forms work?
-
No. JavaScript inside PDF files is disabled for security reasons. Forms can still be filled in.
Відгуки
Учасники та розробники
“PDF viewer for Elementor & Gutenberg” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “PDF viewer for Elementor & Gutenberg” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
1.5.0
- Add initial zoom, initial page and sidebar options
- Add options to hide toolbar, download and print buttons
- Add background color option
- Add PDF URL source with dynamic tags support
- Add compatibility with the “PDF Viewer for Elementor” plugin widgets
1.4.0
- Update PDF.js to 6.4.299 (security fix)
- Rebuild Gutenberg block without third-party dependencies
- Fix escaping in widget editor template
- Fix PDF URLs with special characters
- Add dynamic tags support
- Compatibility with WordPress 7.1 and Elementor 4.3
