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.
This Is PDFDancer
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.
What You Get
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.
Getting Started
Three Steps to Your First Edit
Install the Package
npm install pdfdancer-client-typescript
Run the Examples
Copy the code above, point it at a PDF, and go.
Questions
Frequently Asked
Start Using PDFDancer Today
Get started in seconds with our free tier. No credit card required.