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.
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
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
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
In browser PDF generation live demo using PDFKit
It's literally live after each keystroke. Not too shabby. More on reddit.com
Videos
25:18
Javascript Project: Create Your Own PDF Viewer/Reader [ Using PDF.js ...
03:38
PDF.js Tutorial for beginners - YouTube
18:37
How to use PDF.js and how to visualize a PDF change pages ...
08:35
How to Add PDF Files to HTML Web Pages Using PDF JS Library | PDF ...
13:08
Build a React.js PDF Viewer & Editor With Controls Using ...
28:27
Create a Custom PDF Viewer With JavaScript - YouTube
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.
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
» npm install pdfjs-dist
Published Nov 29, 2025
Version 5.4.449
Repository https://github.com/mozilla/pdf.js
Homepage https://mozilla.github.io/pdf.js/
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...
GitHub
github.com › rossta › vue-pdfjs-demo
GitHub - rossta/vue-pdfjs-demo: A demo PDF viewer implemented with 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...
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
Repository https://github.com/wojtekmaj/react-pdf