Skip to main content
Node.js PDF SDK

Edit PDF Text in Node.js — No Scrambled Characters, No Broken Layout

The only Node.js PDF library that truly modifies text in place. Find-and-replace with automatic reflow, HIPAA-compliant redaction, fill templates programmatically. No flattening. No image overlays. Precise text editing.

Open. Find. Replace. Save.

PDFDancer treats PDFs like editable documents. Select content by what it says — not where it sits on the page — then modify it. The PDF handles the rest.

Regex selectionFind text by pattern — across all pages automatically
In-place editingText is modified inside the PDF structure — no overlays
Async/awaitEvery operation returns a Promise — fits modern Node.js patterns

Built for How Developers Actually Work with PDFs

In-Place Text Editing

Text is modified directly inside the PDF structure. No overlays, no image layers, no document rebuilds. The edited PDF is indistinguishable from the original.

Automatic Reflow

Replace short text with longer text (or vice versa). Line breaks, spacing, and paragraph bounds adjust automatically. No coordinate math.

Async/Await API

Every operation returns a Promise. Use async/await or .then() chains. Designed for modern Node.js patterns — Express middleware, serverless handlers, streaming.

Deploy Anywhere

Same npm package works in Express, Next.js, AWS Lambda, Google Cloud Functions, Azure Functions, and Docker. Under 5MB, no native dependencies.

Three Steps to Your First Edit

1

Install the Package

npm install pdfdancer-client-typescript

2

Get Your API Key

Sign up free at pdfdancer.com/dashboard. No credit card.

3

Run the Examples

Copy the code above, point it at a PDF, and go.

Frequently Asked

Start Using PDFDancer Today

Get started in seconds with our free tier. No credit card required.