🌐
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
API
A general-purpose, web standards-based platform for parsing and rendering PDFs.
Examples
The example demonstrates how promises can be used to handle errors during loading. It also demonstrates how to wait until a page is loaded and rendered. The PDF.js can accept any decoded base64 data as an array.
Policy Templates for Firefox
Note: As of Firefox 140, this policy no longer completely disables PDF.js; it changes the handler to send PDF files to the operating system. Embedded PDF files are shown in the browser.
Getting started
A general-purpose, web standards-based platform for parsing and rendering PDFs.

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)
🌐
PDF.js Express
pdfjs.express › demo
PDF.js Viewer Demo | PDF.js Express
Try the PDF.js Express Viewer demo: 26 out-of-the-box annotations, PDF form filling, e-signatures, UI customization, light/dark themes & more.
Discussions

Custom PDF Viewer using PDF.js - Show and Tell - Anvil Community Forum
This is a custom PDF viewer built using the PDF.js library. As of the latest update, the project works with version 3.7.107 of PDF.js. Future changes might break the current code. Live demo app: Link Here is a clonable: link You can view a functional HTML version of the project hosted on jsfiddl... More on anvil.works
🌐 anvil.works
1
11
April 2, 2023
PDF Viewer with PDFJS - Scriptcase 9 - Scriptcase Low-code
I want to be able to open a pdf in a tiny window on a grid. I am using pdf.js and I have installed it in my external library. I just cant seem to be able to get the specific pdf I want to be able to open. Any help would be much appreciated. More on forum.scriptcase.net
🌐 forum.scriptcase.net
6
0
December 5, 2022
An even slimmer pdf.js
Unpopular puffin time ... um using 600MB of ram to render a PDF to a screen isn't exactly impressive. More on reddit.com
🌐 r/programming
207
517
April 21, 2014
In browser PDF generation live demo using PDFKit
It's literally live after each keystroke. Not too shabby. More on reddit.com
🌐 r/javascript
14
27
February 24, 2014
🌐
GitHub
github.com › mozilla › pdf.js
GitHub - mozilla/pdf.js: PDF Reader in JavaScript
You can play with the PDF.js API directly from your browser using the live demos below: Interactive examples · More examples can be found in the examples folder. Some of them are using the pdfjs-dist package, which can be built and installed in this repo directory via npx gulp dist-install command.
Starred by 52.4K users
Forked by 10.5K users
Languages   JavaScript 71.3% | Fluent 25.5% | CSS 2.2%
🌐
JSFiddle
jsfiddle.net › pdfjs › 9engc9mw
PDF.js 'Hello, world!' example - JSFiddle - Code Playground
The Code Completion will now also have the context of all panels before suggesting code to you - so if for example you have some CSS or JS, the HTML panel will suggest code based on the other two panels.
🌐
Nutrient
nutrient.io › blog › sdk › complete guide to pdfjs
Complete guide to PDF.js
August 11, 2025 - Make sure to add your PDF file to the same directory as the HTML file. You can use the demo PDF file as an example. This is a simple example of how to render a PDF file using PDF.js.
🌐
CodeSandbox
codesandbox.io › s › pdfjs-demo-mv67e
pdfjs-demo - CodeSandbox
December 9, 2019 - pdfjs-demo by hwen using pdfjs-dist, vue
Published   Dec 09, 2019
Author   hwen
Find elsewhere
🌐
Mozilla
mozilla.github.io › pdf.js › examples
PDF.js - Examples
The example demonstrates how promises can be used to handle errors during loading. It also demonstrates how to wait until a page is loaded and rendered. The PDF.js can accept any decoded base64 data as an array.
🌐
npm
npmjs.com › package › pdfjs-dist
pdfjs-dist - npm
2 weeks ago - This is a pre-built version of the PDF.js source code.
      » npm install pdfjs-dist
    
Published   Nov 29, 2025
Version   5.4.449
🌐
PDF-LIB
pdf-lib.js.org
PDF-LIB · Create and modify PDF documents in any ... - JS.ORG
His `, `younger brother and sidekick is Luigi.`, ].join('\n'), ) traitsField.setText( [ `Mario can use three basic three power-ups:`, ` • the Super Mushroom, which causes Mario to grow larger`, ` • the Fire Flower, which allows Mario to throw fireballs`, ` • the Starman, which gives Mario temporary invincibility`, ].join('\n'), ) treasureField.setText(['• Gold coins', '• Treasure chests'].join('\n')) const pdfBytes = await pdfDoc.save() } Try the JSFiddle demo ·
🌐
PDF.js Express
pdfjs.express › samples
JavaScript PDF Viewer Demo & Samples
PDFJS Express · Go to Guides Purchase ... from the file system. Please run using "npm start" or use a local web server. Shows how to call WebViewer constructor to instantiate and load document. You can load local/remote files of your choice. Launch demo View Source...
🌐
Apryse
apryse.com › blog › how-to-use-pdf-js
PDF.js Viewer | Apryse
May 8, 2020 - If you require additional capabilities, like PDF annotation, filling forms, or e-signatures, consider PDF.js Express, which provides a PDF.js-based viewer with out-of-the-box annotation, PDF form fill, and signing. ... Check out the demo and let us know what you think!
🌐
GitHub
github.com › rossta › vue-pdfjs-demo
GitHub - rossta/vue-pdfjs-demo: A demo PDF viewer implemented with Vue and PDF.js
This project demonstrates how a simple PDF viewer could be implemented using Vue and PDF.js.
Starred by 454 users
Forked by 126 users
Languages   Vue 88.3% | JavaScript 7.2% | HTML 1.7% | Ruby 1.5% | Shell 1.3%
🌐
PDF.js Express
pdfjs.express
PDF.js Viewer: Annotate, Form Fill | Easy Setup | PDF.js Express
PDF.js Express does not rely on any specific framework, so it can easily be plugged into any existing web project. Try the demo · Sorry, your browser doesn't support embedded videos. Get 26 pre-built annotations for your PDF.js viewer -- including text highlighting, free-hand draw, comments, shapes, and more.
🌐
JSFiddle
jsfiddle.net › pdfjs › wagvs9Lf
PDF.js Previous/Next example - JSFiddle - Code Playground
This took around a week of work, lots of testing, but it's now done. And the final package of our JS bundle is ~30% smaller.
🌐
Anvil
anvil.works › show and tell
Custom PDF Viewer using PDF.js - Show and Tell - Anvil Community Forum
April 2, 2023 - This is a custom PDF viewer built using the PDF.js library. As of the latest update, the project works with version 3.7.107 of PDF.js. Future changes might break the current code. Live demo app: Link Here is a clonable: link You can view a functional HTML version of the project hosted on jsfiddl...
🌐
Nutrient
nutrient.io › blog › sdk › how to build a javascript pdf viewer with pdfjs
JavaScript PDF viewer tutorial with PDF.js
November 4, 2024 - You can use our demo document as an example. Add an empty <div> element to your HTML where the viewer will mount: ... You can serve the application with the serve package like you did for PDF.js.
🌐
Scriptcase
forum.scriptcase.net › scriptcase 9
PDF Viewer with PDFJS - Scriptcase 9 - Scriptcase Low-code
December 5, 2022 - I want to be able to open a pdf in a tiny window on a grid. I am using pdf.js and I have installed it in my external library. I just cant seem to be able to get the specific pdf I want to be able to open. Any help would …
🌐
ComPDF
compdf.com › blog › build-javascript-pdf-viewer-with-open-source-pdfjs
Build JavaScript PDF Viewer with PDF.js | ComPDFKit
July 9, 2025 - Step 1:Install the ComPDFKit for Web package from npm into your Vanilla JS project ... Step 2: Add the "webviewer" folder which contains the required static resource files to run the ComPDFKit Web demo, to your project’s public resource ...
🌐
CodeSandbox
codesandbox.io › examples › package › pdfjs-dist
pdfjs-dist examples - CodeSandbox
AboutGeneric build of Mozilla's PDF.js library.6,183,977Weekly Downloads · Latest version5.4.449 · LicenseApache-2.0 · External Links · mozilla.github.io/pdf.js/ github.com/mozilla/pdf.js · github.com/mozilla/pdf.js/issues ·
🌐
npm
npmjs.com › package › react-pdf
react-pdf - npm
October 9, 2025 - Online demo is also available! React-PDF is under constant development. This documentation is written for React-PDF 9.x branch. If you want to see documentation for other versions of React-PDF, use dropdown on top of GitHub page to switch to an appropriate tag. Here are quick links to the newest docs from each branch: ... React-PDF supports the latest versions of all major modern browsers. Browser compatibility for React-PDF primarily depends on PDF.js ...
      » npm install react-pdf
    
Published   Oct 09, 2025
Version   10.2.0
Author   Wojciech Maj