npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ironsoftware/ironpdf

v2024.10.8

Published

IronPDF for Node

Downloads

11,814

Readme

Passed windows macOS linux docker livechat

IronPDF - Create, Edit, and Read PDFs in Node.js Applications

IronPDF NPM Trial Banner Image

IronPDF is a library developed and maintained by Iron Software that helps Software Engineers to create, edit and extract PDF content.

Features

IronPDF excels at:

  • Generating PDFs from: HTML, URL, JavaScript, CSS and many image formats
  • Adding headers/footers, and signatures
  • Merge, Split, Add, Copy, & Delete PDF Pages
  • Performance optimization: Full Multithreading and Async support

IronPDF has cross platform support compatibility with:

  • Node.js 12.0+
  • Windows, Linux, Mac, and Docker

IronPDF Cross Platform Compatibility Support Image

Using IronPDF

IronPDF for Node.js utilizes a powerful Chrome Engine to render PDFs from HTML strings, files, and web URLs. Since the rendering process can be computationally intensive, it is recommended to delegate this task to the server-side. Frontend frameworks like ReactJs and Angular can communicate with the server to offload the computational work and await the result, which can then be displayed on the frontend side.

Installation

Using npm:

npm install @ironsoftware/ironpdf

Using yarn:

yarn add @ironsoftware/ironpdf

IronPdf required IronPDF Engine binary, which will download automatically on the first run. Or you can install it as a npm package (Recommended) (Optional)

NOTE: IronPDF Engine and IronPDF version need to match.

For Windows x64

Using npm:

npm install @ironsoftware/ironpdf-engine-windows-x64

Using yarn:

yarn add @ironsoftware/ironpdf-engine-windows-x64

For Windows x86

Using npm:

npm install @ironsoftware/ironpdf-engine-windows-x86

Using yarn:

yarn add @ironsoftware/ironpdf-engine-windows-x86

For Linux x64

Using npm:

npm install @ironsoftware/ironpdf-engine-linux-x64

Using yarn:

yarn add @ironsoftware/ironpdf-engine-linux-x64

For macOS x64

Using npm:

npm install @ironsoftware/ironpdf-engine-macos-x64

Using yarn:

yarn add @ironsoftware/ironpdf-engine-macos-x64

For macOS Arm

Using npm:

npm install @ironsoftware/ironpdf-engine-macos-arm64

Using yarn:

yarn add @ironsoftware/ironpdf-engine-macos-arm64

Usage

Here is a sample HTML to PDF example to get started:

import {PdfDocument} from "@ironsoftware/ironpdf";

// HTML to PDF
(async () => {
    // Render the HTML string
	const pdf = await PdfDocument.fromHtml("<h1>Testing</h1>");

    // Export the PDF document
	await pdf.saveAs("pdf-from-html.pdf");
})();

And another option is to create from URL to PDF:

import {PdfDocument} from "@ironsoftware/ironpdf";

// URL to PDF
(async () => {
    // Render the web URL
    const pdf = await PdfDocument.fromUrl("https://www.google.com");

    // Export the PDF document
    await pdf.saveAs("pdf-from-url.pdf");
})();

Stamp PDF

import {PdfDocument} from "@ironsoftware/ironpdf";

// Stamp PDF
(async () => {
    // Load existing PDF document
	const pdf = await PdfDocument.fromFile("mypdf.pdf");

    // Stamp image on the PDF
	await pdf.stampHtml("<img src='https://ironpdf.com/img/products/ironpdf-logo-text.svg'/>");

    // Export the PDF document
	await pdf.saveAs("stampedPdf.pdf");
})();

Features Table

IronPDF Features

Licensing & Support Available

For more support and inquiries, please email us at: [email protected]