Skip to content
P

PDF-LIB

Create and modify PDF documents in any JavaScript environment

Free

#7976in Utilities
0In stores

Description

pdf-lib is an open-source JavaScript library for creating and changing PDF documents. You can build a document from scratch, draw text, imag…

Highlights

  • Create PDFs from scratch or modify existing ones
  • Pure JavaScript with no native dependencies
  • Split, merge and copy pages
  • Create, fill and flatten PDF forms
  • Embed PNG, JPEG images and pages from other PDFs

Ratings & Reviews

No ratings yet

Be the first to rate PDF-LIB.

People also visit

B

BentoPDF

Powerful, privacy-first, client-side PDF toolkit

Utilities
Launch
E

Every PDF

A powerful, all-in-one desktop PDF toolkit to edit, convert, merge

Utilities
Launch
O

Orbit PDF

High-performance PDF toolkit that runs entirely in your browser

Utilities
Launch
P

PDFSlice

Client Side PDF editor Toolkit

Utilities
Launch
O

OxygenPDF

Every PDF tool. One platform. Zero uploads

Utilities
Launch
S

SwifDoo PDF

PDF editor/converter for editing, compressing, and password-protecting PDFs

Utilities
Launch

PDF-LIB FAQ

What is pdf-lib?

A code library that creates and edits PDF files. You use it from your own JavaScript or TypeScript project rather than as a finished app.

How do I install it?

Install the npm module in your project, or load the UMD build in a web page. It also works in Deno.

Which environments does it run in?

Browsers, Node, Deno and React Native. It has no native dependencies, so it needs no compiled add-ons.

Can it fill PDF forms?

Yes. It reads and fills existing fields such as text fields, check boxes, radio groups, dropdowns and option lists, and it can flatten a form so the values are fixed.

Is it open source?

Yes. The source code is public on GitHub at Hopding/pdf-lib.

What are the best PDF-LIB alternatives?

Popular alternatives to PDF-LIB include BentoPDF, Every PDF and Orbit PDF. See all PDF-LIB alternatives

Developer Stuff

Badges