Changelog
Version 5.2.3
June 12, 2024
- Fixed: There was a small typo in the code that generated in certain cases an incorrect URL to download PDF files.
- Fixed: Sometimes the PDF Viewer was still blocked by the “View in full screen” button on mobile devices.
- Fixed: Remove some debugging messages that are displayed in the browser console in certain cases by the PDF.js library.
Version 5.2.2
June 9, 2024
- Fixed: Remove debug code that was left in the plugin by mistake resulting in fatal error.
Version 5.2.1
June 7, 2024
- Changed: Do not display the license key on the About page in plain text.
- Fixed: There was an error in code that prevented WordPress from removing the plugin using the plugins admin interface.
- Fixed: PDF files located outside the default WordPress uploaded Media files location were not rendered in the Viewer, home page was loaded instead.
Version 5.2.0
June 6, 2024
- IMPORTANT: The minimum WordPress version is now WordPress v5.8.
- IMPORTANT: The minimum PHP version is now PHP v7.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 JS file names.
- Added: A ton of new configuration options were added to the PDF Embedder block. If modified, they override the global plugin settings on a per-file basis.IMPORTANT: The minimum PHP version is now PHP v7.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 JS file names.
- Changed: The plugin has been tested with the latest version of WordPress.
- Changed: Block was rewritten from scratch, and now it looks and works better in the Block Editor and also syncs its default settings with plugin options.
- Changed: The PDF Viewer (which continues to use an iframe) now has a proper canonical URL when pointing to the public PDF file. Secured PDFs have a robots
noindex
meta tag.
- Fixed: A lot of strings in the plugin have been fixed to make them accurate and translatable.
- Fixed: Several security-related improvements have been implemented (data sanitization and escaping). Also, improved the way PDF files are rendered to prevent arbitrary script execution.
- Fixed: PDF file embedded via a shortcode was not loadable when the content was retrieved via AJAX.
- Fixed: Text in PDF files in certain languages (like Japanese and Korean) was not rendered correctly.
- Fixed: Download and View counter can be enabled and disabled on a per PDF file basis via shortcode attributes (view_counter and download_counter) or block options (toggle to on/off).
- Fixed: Toolbar locations bottom and both were not working properly due to various JavaScript errors.
- Fixed: There was incorrect padding at the top of the viewer when the toolbar location was set to other than top or both.
- Fixed: The zoom attribute defined for a specific file was not passed properly to the viewer.
- Fixed: User-redefined zoom value was not preselected inside the Viewer Toolbar.
- Fixed: External links option (global for the plugin and per individual PDF file) was not respecting the “Open in new tab” setting.
- Fixed: The fullscreen button in the viewer was not working correctly. You can now close it by pressing the ESC key on your keyboard or clicking the same fullscreen icon again.
- Fixed: PDF Attachment pages were having some performance issues due to the excessive number of database queries.
- Fixed: Improved the responsiveness (ability to interact with) of scrollbars and automatically hidden toolbar when it’s not fixed.
- Fixed: Improved the readability of the text inside the Search panel inside the Viewer.
- Fixed: You can now again set the first page of the multipage PDF file to be displayed by default via a shortcode attribute or a block option.
- Fixed: The “Scroll to Top” attribute in the shortcode (or plugin global setting) was not scrolling to the top of the PDF file when arrow navigation within the Viewer was used.
- Fixed: Watermarks are now part of the Viewer canvas which makes them more reliable.
- Fixed: Correctly handle newline characters in the watermark text, they are now preserved.
- Fixed: Correctly center the watermark text in the PDF Viewer according to the viewer sizes.
- Fixed: The loading speed of PDF files improved in various cases.
- Fixed: It was not possible to download the PDF file from within the Viewer on certain WordPress installations.
- Fixed: Some performance-related issues were addressed, so the plugin has less effect on the overall site performance.
- Fixed: PDF files’ encryption was not working as expected.
- Fixed: Several encoding issues in various PDF files were fixed.
- Fixed: “Disable right-click” option was not working properly.
- Fixed: Enabling the tracking functionality (PDF views and downloads) didn’t have an effect, now the counters are displayed and incremented properly.
- Fixed: The mobile options in the plugin were not working as expected, now the button to display the file in full screen is visible on mobile devices, threshold is configurable. The threshold is applicable to the PDF Viewer width.
- Fixed: PDF Viewer styles on mobile are improved a little bit. More to come!