๐ŸŒ
Mozilla
mozilla.github.io โ€บ pdf.js
PDF.js - Home
A general-purpose, web standards-based platform for parsing and rendering PDFs.
Nunjucks
Just use npm to install it: $ npm install nunjucks ยท Grab nunjucks.js (min) for the full library, or grab nunjucks-slim.js (min) for a slim version that only works with precompiled templates. Read more about the differences of these files in Getting Started
API
A general-purpose, web standards-based platform for parsing and rendering PDFs.
Examples
A general-purpose, web standards-based platform for parsing and rendering PDFs.
Getting started
Before downloading PDF.js please take a moment to understand the different layers of the PDF.js project. Please refer to this wiki page for information about supported browsers. Includes the generic build of PDF.js and the viewer.

PDF viewer in JavaScript included in Mozilla Firefox

PDF.js is a JavaScript library that renders Portable Document Format (PDF) files using the web standards-compliant HTML5 Canvas. The project is led by the Mozilla Corporation after Andreas Gal launched it (initially โ€ฆ Wikipedia
Factsheet
Original author Andreas Gal
Developer Mozilla
Initial release 2 July 2011 (2011-07-02)
Factsheet
Original author Andreas Gal
Developer Mozilla
Initial release 2 July 2011 (2011-07-02)
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ pdf-js.mirror
PDF.js download | SourceForge.net
November 2, 2025 - Download PDF.js for free. A PDF Reader in JavaScript. PDF.js is a web standards-based platform for parsing and rendering Portable Document Formats (PDFs). Open source and built with HTML5, this PDF viewer is supported by a great community and Mozilla Labs.
Discussions

How to save/download a pdf file from browser's pdf preview?
Because there's a very simple two-liner which is the correct way to download the link you've provided. I tested it and it works. ... Chromium has a built-in PDF viewer extension that shows you a webpage with the PDF embedded in it after you navigate to a PDF file so you can preview it. More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to download pdf.js viewer?
Wasted 30 minutes trying to search the solution that I found doesn't work, the guy is using something that has the extension .pdf available on the inspection of elements which isn't for me, there is a pdftohtmlEX.js there though More on reddit.com
๐ŸŒ r/pcmasterrace
4
1
October 9, 2020
PDF viewer in Next.js

https://www.npmjs.com/package/react-pdf ?

More on reddit.com
๐ŸŒ r/nextjs
8
5
May 2, 2019
Download pdf embedded into website via javascript
Is the link public? if so, would this work? https://pdfcrowd.com/ More on reddit.com
๐ŸŒ r/learnjavascript
2
1
October 2, 2020
๐ŸŒ
Chrome Web Store
chromewebstore.google.com โ€บ detail โ€บ pdf-viewer โ€บ oemmndcbldboiebfnladdacbdfmadadm
PDF Viewer - Chrome Web Store
This is the official Chrome extension of the PDF.js project. Be careful of unrelated copycats. If you want to use this viewer to view local files, visit chrome://extensions/?id=oemmndcbldboiebfnladdacbdfmadadm and put a check before "Allow access to file URLs".
๐ŸŒ
PDF.js Express
pdfjs.express
PDF.js Viewer: Annotate, Form Fill | Easy Setup | PDF.js Express
Fast & easy PDF.js Viewer integration with PDF.js Express. Add annotations, fill forms & sign PDFs in a web browser. Fully supported - download & try it free
๐ŸŒ
WordPress
wordpress.org โ€บ plugins โ€บ pdfjs-viewer-shortcode
PDF.js Viewer โ€“ WordPress plugin | WordPress.org
2 days ago - This plugin can be installed either directly from your WordPress admin panel by searching for PDF.js Viewer, or downloading from the WordPress Plugin Repository and uploading and expanding the archive into your sites wp-content/plugins directory.
Rating: 4.4 โ€‹ - โ€‹ 53 votes
๐ŸŒ
GitHub
github.com โ€บ mozilla โ€บ pdf.js
GitHub - mozilla/pdf.js: PDF Reader in JavaScript
PDF Reader in JavaScript. Contribute to mozilla/pdf.js development by creating an account on GitHub.
Starred by 52.4K users
Forked by 10.5K users
Languages ย  JavaScript 71.3% | Fluent 25.5% | CSS 2.2%
๐ŸŒ
Mozilla
mozilla.github.io โ€บ pdf.js โ€บ getting_started
PDF.js - Getting Started
Before downloading PDF.js please take a moment to understand the different layers of the PDF.js project. Please refer to this wiki page for information about supported browsers. Includes the generic build of PDF.js and the viewer.
Find elsewhere
๐ŸŒ
GitHub
github.com โ€บ pkp โ€บ pdfJsViewer
GitHub - pkp/pdfJsViewer: A pdf.js-based PDF viewer for OJS articles and issue galleys.
============================================= === pdf.js Viewer Plugin === A pdf.js-based PDF viewer for OJS 3.0.x === Author: Alec Smecher <[email protected]> ============================================= About ----- This is a PDF viewer plugin based on the pdf.js PDF reader.
Starred by 16 users
Forked by 36 users
Languages ย  JavaScript 65.7% | Fluent 31.0% | CSS 2.5%
๐ŸŒ
npm
npmjs.com โ€บ package โ€บ ng2-pdfjs-viewer
ng2-pdfjs-viewer - npm
4 weeks ago - 7M+ downloads, mobile-first, production-ready with complete rewrite in v25.x. Latest version: 25.0.18, last published: 24 days ago. Start using ng2-pdfjs-viewer in your project by running `npm i ng2-pdfjs-viewer`. There are ...
      ยป npm install ng2-pdfjs-viewer
    
Published ย  Nov 18, 2025
Version ย  25.0.18
Author ย  Aneesh Goapalakrishnan
๐ŸŒ
jsDelivr
jsdelivr.com โ€บ package โ€บ npm โ€บ pdf.js-viewer
pdf.js-viewer CDN by jsDelivr - A CDN for npm and GitHub
April 26, 2017 - A free, fast, and reliable CDN for pdf.js-viewer. Compiled version of pdf.js
Published ย  Jan 05, 2017
๐ŸŒ
WordPress.com
wordpress.com โ€บ plugins โ€บ pdfjs-viewer-shortcode
PDF.js Viewer Plugin โ€” WordPress.com
July 30, 2025 - PDF.js is a javascript library for displaying pdf pages within browsers. ... Shortcode Syntax: [pdfjs-viewer url=http://www.website.com/test.pdf viewer_width=600px viewer_height=700px fullscreen=true download=true print=true]
๐ŸŒ
Mozilla Support
support.mozilla.org โ€บ en-US โ€บ questions โ€บ 1402087
Unable to download PDFs in embedded pdf.js viewer
January 12, 2023 - JavaScript is disabled in your browser ยท Please enable JavaScript to proceed ยท A required part of this site couldnโ€™t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
๐ŸŒ
Mozilla
mozilla.github.io โ€บ pdf.js โ€บ web โ€บ viewer.html
PDF.js viewer
A general-purpose, web standards-based platform for parsing and rendering PDFs.
๐ŸŒ
Nutrient
nutrient.io โ€บ web โ€บ save a document โ€บ to local storage
Save & download PDF locally from JavaScript viewer | Nutrient
This can be done programmatically by exporting the document to an ArrayBuffer via Instance#exportPDF() and triggering a download.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 78290397 โ€บ how-to-save-download-a-pdf-file-from-browsers-pdf-preview
How to save/download a pdf file from browser's pdf preview?
I am using this sample PDF. https://www.cheat-sheets.org/saved-copy/http-response-codes-1.pdf My goal is to download this as a pdf file. Here is my code so far const playwright = require('playwrigh...
๐ŸŒ
Quora
quora.com โ€บ How-can-I-download-a-PDF-file-that-is-rendered-by-PDF-js-and-doesnt-have-a-download-button
How to download a PDF file that is rendered by PDF.js and doesn't have a download button - Quora
Answer: Well, I donโ€™t know anything about PDF.js, and I understand one of those files may behave differently, but Iโ€™ll give you methods that would work on an ordinary pdf. Maybe theyโ€™ll work for you. Iโ€™m assuming youโ€™re looking at it in a web browser, and probably got to it by a link ...
๐ŸŒ
Apryse
apryse.com โ€บ blog โ€บ how-to-use-pdf-js
PDF.js Viewer | Apryse
May 8, 2020 - We will also use it as a full screen PDF viewer where we can pass in a PDF filename via URL query string. Try the full screen viewer now: Open Full Screen PDF.js Viewer ... Letโ€™s head over to GitHub to download the latest stable release and then extract the contents inside our website folder.
๐ŸŒ
Viewerjs
viewerjs.org
ViewerJS Home
ViewerJS must be the easiest way to use presentations, spreadsheets, PDF's and other documents on your website or blog without any external dependencies. No tricks, no conversions, no unexpected downtime from external services, and no plugins required โ€“ it happens to work just fine in all major browsers today from the comfort of your own webserver.