PDF viewer for Elementor & Gutenberg
Description
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
Installation
- 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.
Faq
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.
Current versions of Chrome, Edge, Firefox and Safari 18 or newer. Old browsers, like Safari on iOS 15, are not supported by PDF.js.
Reviews
Crap
By mike2972 on October 26, 2024
The plugin does not have a valid header. So, total piece of crap.
Easy to use PDF plugin
By cdrewsleonard on September 27, 2024
This plugin shows PDF files nicely and is easy to use.
Best pdf Viewer
By zozch on August 14, 2023
Many other similar plugins do not work in the mobile version, but this plugin works!
Changelog
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