Test PDF.js Loading Behavior

Open a PDF in Media Library Using PDF.js Shortcode Block

The version of PDFjs Viewer - Embed PDFs is 3.0.4 

I solved the “viewing PDF problem” by clearing history in Chrome, Safari, and Firefox on Mac and Windows when a PDF fails to load! But now with the new version 3.0.4, the browser page cache/history clearing issue may be less of a problem – Thank you

Thomas McMahon

View a PDF Managed by Download Monitor with Display Statistics

In this example, PDF.js plugin is used to view a PDF from a file managed by the Download Monitor plugin, along with 2 PHP scripts I wrote for the Code Snippets plugin to retrieve a secure PDF file, then display incremental statistics: download count and last date viewed.

Plugins used:

  • PDF.js plugin version: The version of PDFjs Viewer - Embed PDFs is 3.0.4
  • Download Monitor plugin version: The version of Download Monitor is 5.1.12
  • Code Snippets plugin version: The version of Code Snippets is 3.9.5
    • PHP Snippet: Download Monitor + PDF.js Viewer
    • PHP Snippet: Unified File Event Counter for Download Monitor

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *