Core banner
LibPDF-js LibPDF-js

Core

Development community

Description

A modern PDF library for TypeScript. Parse, modify, and generate PDFs with a clean, intuitive API.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

LibPDF

[![npm](https://img.shields.io/npm/v/@libpdf/core)](https://www.npmjs.com/package/@libpdf/core) [![npm downloads](https://img.shields.io/npm/dm/@libpdf/core)](https://www.npmjs.com/package/@libpdf/core) [![CI](https://github.com/LibPDF-js/core/actions/workflows/ci.yml/badge.svg)](https://github.com/LibPDF-js/core/actions/workflows/ci.yml) [![GitHub stars](https://img.shields.io/github/stars/libpdf-js/core?style=flat)](https://github.com/LibPDF-js/core) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)

A modern PDF library for TypeScript. Parse, modify, and generate PDFs with a clean, intuitive API.

**Beta Software**: LibPDF is under active development and APIs may change between minor versions, but we use it in production at [Documenso](https://documenso.com) and consider it ready for real-world use.

Why LibPDF?

LibPDF was born from frustration. At [Documenso](https://documenso.com), we found ourselves wrestling with the JavaScript PDF ecosystem:

  • PDF.js is excellent for rendering and even has annotation editing — but it requires a browser
  • pdf-lib has a great API, but chokes on slightly malformed documents
  • pdfkit only generates, no parsing at all

We kept adding workarounds. A patch here for a malformed xref table. A hack there for an encrypted document. Eventually, we decided to build what we actually needed:

  • Lenient like PDFBox and PDF.js: opens documents other libraries reject
  • Intuitive like pdf-lib: clean, TypeScript-first API
  • Complete: encryption, digital signatures, incremental saves, form filling

Features

Feature Status Notes
Parse any PDF Yes Graceful fallback for malformed documents
Create PD