IRONSOFTWAREHOME
IronPDF for Node.js

The Node.js PDF Library

  1. HTML to PDF Converter for Node.js 12+
  2. IronPDF is available as a .NET, Java, Python, and Node.js PDF Generator
  3. 50+ PDF API Features to Read and Manipulate PDFs

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.

Cross Platform Support

Designed for Node.js 12+ running on Windows, Mac, Linux or Cloud Platforms.
Available for .NET, Java, Python, and Node.js.

Node.js 12+
WebStorm
Visual Studio Code
npm
Windows Logo
Windows Logo
Linux Logo
Docker Logo
Azure Logo
AWS Logo

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

World-Class Engineering,
24-Hour Support

Ready to Get Started?

Version:2026.8just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF for Node.js
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required
Node.js Module Download for PDF
Install with npm

Version: 2026.8

  1. Download and install Node.js 12+.
  2. Execute the above command in the terminal.

Licenses from $999