PDF.js Viewer source code

By Ben Lawson, on WordPress.org since 2013. 20,000+ active installs.

Browse code Download zip

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.0

21 files changed since 3.1.0: 20 modified, 0 added, 1 removed.

And 11 more.

Compare 3.1.0 with 3.1.1

Release history

44 releases since January 2014
  1. 3.2.0 Oct 26, 2026
  2. 3.1.1 Apr 21, 2026
  3. 3.1.0 Apr 11, 2026
  4. 3.0.4 Mar 25, 2026
  5. 3.0.3.1 Mar 21, 2026
Full PDF.js Viewer changelog with diffs

Source of 3.1.1

457 files
Browse all PDF.js Viewer 3.1.1 files Browse trunk