Tainacan Unsecure Legacy PDFJS
A plugin to integrate a legacy but unsecure version of PDF.js back to Tainacan. Use this at your own risk if you really need PDF file preview in mobile or older browsers.
by mateuswetah · github.com/tainacan/tainacan-unsecure-legacy-pdfjs
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/tainacan/tainacan-unsecure-legacy-pdfjs/releases/download/v1.0.0/tainacan-unsecure-legacy-pdfjs.zipReadme
Tainacan Unsecure Legacy PDFJS
WARNING: Use this at your own risk
As explained here, from Tainacan version 0.21.5 on, PDF content is previewed inside Tainacan items using the native Broswer PDF reader.
Previously a version of the famous PDF.js library handled this but it was removed due to security reasons. This does have one side effect because mobile browsers and some legacy browsers do not render PDF natively, offering a download button instead. If you really, REALLY need this feature, you may use this plugin at your own risk.
Usage
Simply install the release .zip via WordPress Admin or move to your /wp-content/plugins folder and extract there. Make sure Tainacan plugin is already installed and activated then install this plugin itself.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.0 | Oct 14, 2024 | tainacan-unsecure-legacy-pdfjs.zip | 25 |