๐ŸŒ
Mozilla
mozilla.github.io โ€บ pdf.js
PDF.js - Home
A general-purpose, web standards-based platform for parsing and rendering PDFs. Download Demo GitHub Project
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.
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
An introduction to PDF.js with examples. Before downloading PDF.js please take a moment to understand the different layers of the PDF.js project.

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)
๐ŸŒ
Mozilla
mozilla.github.io โ€บ pdf.js โ€บ getting_started
PDF.js - Getting Started
An introduction to PDF.js with examples. Before downloading PDF.js please take a moment to understand the different layers of the PDF.js project.
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ pdf-js.mirror
PDF.js download | SourceForge.net
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.
๐ŸŒ
GitHub
github.com โ€บ mozilla โ€บ pdf.js
GitHub - mozilla/pdf.js: PDF Reader in JavaScript
The PDF.js files are large and should be minified for production. To use PDF.js in a web application you can choose to use a pre-built version of the library or to build it from source. We supply pre-built versions for usage with NPM under the pdfjs-dist name.
Starred by 52.5K users
Forked by 10.5K users
Languages ย  JavaScript 71.1% | Fluent 25.5% | CSS 2.3% | HTML 1.1%
๐ŸŒ
Nutrient
nutrient.io โ€บ blog โ€บ sdk โ€บ complete guide to pdfjs
Complete guide to PDF.js
August 11, 2025 - The following section will walk through how to set up and use PDF.js for simpler use cases. Download or clone PDF.js โ€” You can download(opens in a new tab) the library as a ZIP file or clone the repository using Git.
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
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 ...
๐ŸŒ
SourceForge
sourceforge.net โ€บ home โ€บ open source software โ€บ formats and protocols โ€บ protocols โ€บ web services โ€บ pdf.js โ€บ files
PDF.js - Browse Files at SourceForge.net
This is an exact mirror of the PDF.js project, hosted at https://github.com/mozilla/pdf.js. SourceForge is not affiliated with PDF.js. For more information, see the SourceForge Open Source Mirror Directory. Summary ยท Files ยท Reviews ยท Download Latest Version pdfjs-5.4.449-dist.zip (6.4 MB) Home ยท
๐ŸŒ
Parallax
parall.ax โ€บ products โ€บ jspdf
jsPDF
Get your hands on the leading PDF generator for free - click download now, or view documentation.
๐ŸŒ
npm
npmjs.com โ€บ package โ€บ pdfjs-dist
pdfjs-dist - npm
Generic build of Mozilla's PDF.js library.. Latest version: 5.4.449, last published: 17 days ago. Start using pdfjs-dist in your project by running `npm i pdfjs-dist`. There are 2284 other projects in the npm registry using pdfjs-dist.
      ยป npm install pdfjs-dist
    
Published ย  Nov 29, 2025
Version ย  5.4.449
๐ŸŒ
Apache PDFBox
products.documentprocessing.com โ€บ viewer โ€บ javascript โ€บ pdf.js
PDF.js | Advanced JavaScript PDF Viewer | Open Source
June 25, 2025 - Yes, PDF.js supports partial loading of PDF files using HTTP Range Requests. This feature allows the library to request and render only the necessary portions of a PDF document, such as the pages currently in view, rather than downloading the entire file upfront.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnjavascript โ€บ download pdf embedded into website via javascript
r/learnjavascript on Reddit: Download pdf embedded into website via javascript
October 2, 2020 -

Hi, i'm a student and i have always used my university proxy server to access online libraries and download files from books. Since there was no download button, i have always used chrome "inspect" function --> Network --> Reloaded page to found the .pdf file link and download it directly.
This system has completely changed since September: now the pdf are shown into a library web reader, and i'm not able to find any .pdf link when i inspect the page. After some research i found out that the page is using javascript (some of the links i find through the inspection are .js, and if i disable javascript the page won't load), but my knowledge ends here.

Please help me to find a way to download .pdf files like i used to. Thanks!

๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ how-to-download-pdf-file-on-button-click-using-javascript
How to Download PDF File on Button Click using JavaScript ? - GeeksforGeeks
August 5, 2025 - You can set the width of the first column of the table to 50% within the docDefinition.Then trigger the download of the PDF file. Example: The below example shows the implementation of the above-explained approach. ... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content= "width=device-width, initial-scale=1.0"> <title>Table to PDF</title> <script src= "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"> </script> <style> body { font-family: Ar