PDF.js Viewer source code
By Ben Lawson, on WordPress.org since 2013. 20,000+ active installs.
Incorporate Mozilla’s PDF.js viewer into your pages and posts via a Gutenberg block or a simple shortcode. PDF.js is a javascript library for displaying pdf pages within browsers. Below is its source code for every one of its 44 releases, what changed in the latest one, and how often it ships.
What changed in 3.1.1
Released Apr 21, 2026, 1 week after 3.1.021 files changed since 3.1.0: 20 modified, 0 added, 1 removed.
- blocks/build/index.asset.php modified, same size
- blocks/build/index.js modified, -8 bytes
- blocks/src/block/block.js modified, -419 bytes
- inc/custom-page.php modified, +3,978 bytes
- inc/elementor-widget.php modified, +41 bytes
- inc/gutenberg-block.php modified, +691 bytes
- inc/options-page.php modified, +558 bytes
- inc/render-viewer.php modified, +206 bytes
- languages/pdfjs-viewer-shortcode-es_ES.mo modified, -1,249 bytes
- languages/pdfjs-viewer-shortcode-es_ES.po modified, +712 bytes
And 11 more.
Compare 3.1.0 with 3.1.1