Mozilla
mozilla.github.io βΊ pdf.js
PDF.js - Home
A general-purpose, web standards-based platform for parsing and rendering PDFs.
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
This tutorial shows how PDF.js can be used as a library in a web browser.
Getting started
A general-purpose, web standards-based platform for parsing and rendering PDFs.
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/
Videos
13:08
Build a React.js PDF Viewer & Editor With Controls Using ...
07:35
Build a PDF-LIB PDF Editor to Highlight,Redact and Annotate ...
03:28
β¨ Generate PDFs Dynamically in Node.js with PDF-Lib π Full ...
19:23
Javascript PDF-LIB Tutorial to Add Page Numbers to All Pages of ...
04:19
Build a PDF.js PDF Canvas Editor Using PDF-LIB & Fabric.js ...
19:06
Why You Should be AFRAID of PDF Files - PDF.js CVE-2024-4367 - YouTube
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%
PDF-LIB
pdf-lib.js.org
PDF-LIB Β· Create and modify PDF documents in any JavaScript environment.
Create and modify PDF documents in any JavaScript environment.
Mozilla
mozilla.github.io βΊ pdf.js βΊ getting_started
PDF.js - Getting Started
βββ docs/ - website source code βββ examples/ - simple usage examples βββ extensions/ - browser extension source code βββ external/ - third party code βββ l10n/ - translation files βββ src/ β βββ core/ - core layer β βββ display/ - display layer β βββ shared/ - shared code between the core and display layers β βββ interfaces.js - interface definitions for the core/display layers β βββ pdf.*.js - wrapper files for bundling βββ test/ - unit, font, reference, and integration tests βββ web/ - viewer layer βββ LICENSE βββ README.md βββ gulpfile.mjs - build scripts/logic βββ package-lock.json - pinned dependency versions βββ package.json - package definition and dependencies
Wikipedia
en.wikipedia.org βΊ wiki βΊ PDF.js
PDF.js - Wikipedia
July 18, 2025 - PDF.js is a JavaScript library that renders Portable Document Format (PDF) files using the web standards-compliant HTML5 Canvas.
Nutrient
nutrient.io βΊ blog βΊ sdk βΊ complete guide to pdfjs
Complete guide to PDF.js
August 11, 2025 - PDF.js is Mozillaβs open source JavaScript library for rendering PDFs in browsers without plugins. This guide covers PDF.js setup, rendering with the Canvas API, navigation controls, zoom functionality, and handling basic annotations. However, for enterprise applications requiring advanced features, high performance, and dedicated support, Nutrient Web SDK is the ideal solution.
DEV Community
dev.to βΊ handdot βΊ generate-a-pdf-in-js-summary-and-comparison-of-libraries-3k0p
A full comparison of 6 JS libraries for generating PDFs - DEV Community
March 22, 2022 - As for PDFKit the APIs provided have an imperative pattern, with the result that creating a complex layout tend to be very hard. Embedding fonts itβs not difficult but needs an extra step: converting the fonts to TTF files. jsPDF is not the easiest library to master, but the documentation is very rich so youβll not encounter any particular obstacle while working with it.
cdnjs
cdnjs.com βΊ home βΊ libraries βΊ pdf.js
pdf.js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
Libraries Β· pdf.js Β· PDF Reader in JavaScript Β· 52k Β· GitHub Β· package Β· Apache-2.0 licensed Β· Tags: PDF, reader, Js Β· Version Β· 5.4.149 Β· Loading... Asset Type Β· All Β· Loading...
npm
npmjs.com βΊ package βΊ pdfjs-lib
pdfjs-lib - npm
PDF.js is a Portable Document Format (PDF) library that is built with HTML5.
Β» npm install pdfjs-lib
Published Β Jan 12, 2023
Version Β 0.0.149
Repository Β https://github.com/mozilla/pdfjs-dist
Homepage Β http://mozilla.github.io/pdf.js/
GitHub
github.com βΊ parallax βΊ jsPDF
GitHub - parallax/jsPDF: Client-side JavaScript PDF generation for everyone.
A library to generate PDFs in JavaScript. You can catch me on twitter: @MrRio or head over to my company's website for consultancy. jsPDF is now co-maintained by yWorks - the diagramming experts.
Starred by 30.9K users
Forked by 4.8K users
Languages Β JavaScript 96.4% | TypeScript 2.4% | HTML 1.2%
PDF.js Express
pdfjs.express
PDF.js Viewer: Annotate, Form Fill | Easy Setup | PDF.js Express
Form Filling Library Β· Real-time Collaboration Β· Customize your PDF.js Viewer
SourceForge
sourceforge.net βΊ projects βΊ pdf-js.mirror
PDF.js download | SourceForge.net
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.
Mozilla
mozilla.github.io βΊ pdf.js βΊ examples
PDF.js - Examples
This tutorial shows how PDF.js can be used as a library in a web browser.
npm
npmjs.com βΊ package βΊ pdfjs
pdfjs - npm
A Portable Document Format (PDF) generation library targeting both the server- and client-side.. Latest version: 2.5.4, last published: 5 months ago. Start using pdfjs in your project by running `npm i pdfjs`. There are 53 other projects in ...
Β» npm install pdfjs
Published Β Jul 01, 2025
Version Β 2.5.4
Author Β Markus Ast
Repository Β https://github.com/rkusa/pdfjs
Homepage Β https://github.com/rkusa/pdfjs
PDFKit
pdfkit.org
PDFKit
A JavaScript PDF generation library for Node and the browser.
GitHub
github.com βΊ mozilla βΊ pdfjs-dist
GitHub - mozilla/pdfjs-dist: Generic build of PDF.js library.
Starred by 1.3K users
Forked by 568 users
Languages Β JavaScript 99.2% | CSS 0.8%
npm
npmjs.com βΊ package βΊ jspdf
jspdf - npm
A library to generate PDFs in JavaScript. You can catch me on twitter: @MrRio or head over to my company's website for consultancy. jsPDF is now co-maintained by yWorks - the diagramming experts.
Β» npm install jspdf
Published Β Nov 19, 2025
Version Β 3.0.4
Repository Β https://github.com/parallax/jsPDF
Homepage Β https://github.com/parallax/jsPDF