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.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tainacan/tainacan-unsecure-legacy-pdfjs/releases/download/v1.0.0/tainacan-unsecure-legacy-pdfjs.zipWARNING: 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.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.