The Node.js PDF Library
- HTML to PDF Converter for Node.js 12+
- IronPDF is available as a .NET, Java, Python, and Node.js PDF Generator
- 50+ PDF API Features to Read and Manipulate PDFs
See what’s new:PDF Optional Content Groups
import {PdfDocument} from "@ironsoftware/ironpdf";
(async () => {
const pdfFromUrl = await PdfDocument.fromUrl("https://ironpdf.com/");
await pdfFromUrl.saveAs("website.pdf");
const pdfFromHtmlFile = await PdfDocument.fromHtml("design.html");
await pdfFromHtmlFile.saveAs("markup.pdf");
const pdfFromHtmlString = await PdfDocument.fromHtml("<p>Hello World</p>");
await pdfFromHtmlString.saveAs("markup_with_assets.pdf");
})();Explore the code and run it to see the sample PDFs
Works with AI Coding Agents
Claude
Codex
GitHub Copilot
Cursor
Antigravity
Other coding agents
Runs Inside Your Infrastructure
No MCPs or external processing. IronPDF runs inside your application, keeping documents in your control.
AI-ready Documentation
Clear documentation, API references, and tutorials help coding agents use IronPDF effectively.
Built for Enterprise Workflows
Add enterprise-grade document capabilities where accuracy, consistency, and control matters.
A Node.js PDF Library that prioritizes accuracy, ease of use, and speed.
IronPDF is the leading Node.js PDF library for generating & editing PDFs. Its user friendly API allows developers to rapidly deliver professional, high quality PDFs from HTML in all types of Node.js projects.
Get your free 30-day Trial Key instantly.
When you need your PDF to look like HTML, fast.
Compatibility
Platforms:
- Node.js 12+
OS:
- Microsoft Windows
- MacOS
- Linux
- Docker
- Azure
- AWS
IDEs:
- Jetbrains WebStorm
- Visual Studio Code
- Other Node.js IDEs
Generating PDFs
HTML to PDF:
- HTML File to PDF
- HTML String to PDF
- URL to PDF
Convert Images:
- Image to PDF
- PDF to Image
Apply Settings:
- Base 64 Encoding
- Base URLs
- Custom File Paths
Supports:
- Website & System Logins
- Custom User Agents
- Proxies
- HTTP Headers
Formatting PDFs
Use HTML Assets:
- HTML (5 and below)
- CSS (Screen & Print)
- Images (jpg, png, gif, tiff, svg, bmp)
- JavaScript (+ Render Delays)
- Fonts (Web & Icon)
Set View:
- Responsive Layouts
- Virtual Viewport & Zoom
Apply Templates:
- Headers & Footers
- Page Numbers
- Page Breaks
Apply Page Settings:
- Custom Paper Size
- Orientation & Rotation
- Margins (mm, inch, & zero)
- Color & Grayscale
- Resolution & JPEG Quality
International Languages:
- UTF-8 HTML Encoding
Editing PDFs
Change Page Structure:
- Merge & Split PDFs
Edit Content:
- Add New HTML Content
- Add Headers & Footers
- Stamp & Watermark
- Backgrounds & Foregrounds
- Add & Edit Annotations
- Outlines & Bookmarks
Use Forms:
- Create & Edit PDF Forms
- Fill Existing PDF Forms
Apply Document Settings:
- PDF Metadata
- Permissions & Passwords
- Digital Signatures
Send PDF to a Printer:
- Print to a Physical Printer
Read a PDF:
- Extract Text & Images
Trusted by millions of engineers worldwide
Ready to Get Started?
Version:2026.8just released