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 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-pdf-tools

v1.6.4

Published

n8n node pour manipuler des fichiers PDF

Readme

PDF Tools Node for n8n

A powerful n8n node for PDF manipulation that provides a comprehensive set of tools for working with PDF files.

Features

PDF Operations

  • Add Image: Add images to PDF pages with customizable positioning and scaling
  • Add Watermark: Add text watermarks with customizable font size, color, and opacity
  • Delete Pages: Remove specific pages from a PDF
  • Extract Pages: Extract specific pages into a new PDF
  • Extract Text: Extract text content from PDF files
  • Merge PDFs: Combine multiple PDFs into a single document
  • Read Metadata: Extract PDF metadata (title, author, subject, etc.)
  • Reorder Pages: Change the order of pages in a PDF
  • Rotate Pages: Rotate specific pages by 90, 180, or 270 degrees
  • Split PDF: Split a PDF into multiple files

Installation

  1. Install the node in your n8n instance:
npm install n8n-nodes-pdf-tools
  1. Restart your n8n server

Usage

Add Image to PDF

Add an image to specific pages of a PDF with customizable positioning:

// Example workflow
{
  "operation": "addImage",
  "pdfBinaryName": "input.pdf",
  "imageBinaryName": "logo.png",
  "pageTarget": "1,3-5",
  "imageOptions": {
    "x": 50,
    "y": 400,
    "scale": 0.5
  }
}

Add Watermark

Add a text watermark to PDF pages:

// Example workflow
{
  "operation": "watermark",
  "pdfBinaryName": "input.pdf",
  "watermarkText": "CONFIDENTIAL",
  "pageTarget": "all",
  "watermarkOptions": {
    "fontSize": 72,
    "color": "#FF0000",
    "opacity": 0.5
  }
}

Merge PDFs

Combine multiple PDFs into a single document:

// Example workflow
{
  "operation": "merge",
  "pdfBinaryNames": "pdf1.pdf,pdf2.pdf,pdf3.pdf"
}

Page Management

Various operations for managing PDF pages:

// Delete pages
{
  "operation": "delete",
  "pdfBinaryName": "input.pdf",
  "pages": "1,3-5"
}

// Extract pages
{
  "operation": "extractPages",
  "pdfBinaryName": "input.pdf",
  "pages": "1-3"
}

// Reorder pages
{
  "operation": "reorder",
  "pdfBinaryName": "input.pdf",
  "newPageOrder": "3,1,2"
}

// Rotate pages
{
  "operation": "rotate",
  "pdfBinaryName": "input.pdf",
  "pages": "1-3",
  "rotationAngle": 90
}

Supported Formats

  • PDF: application/pdf
  • Images:
    • PNG (image/png)
    • JPEG (image/jpeg)

Page Selection Format

The node supports various page selection formats:

  • Single page: "1"
  • Multiple pages: "1,3,5"
  • Page ranges: "1-5"
  • All pages: "all"

Error Handling

The node includes comprehensive error handling for:

  • Invalid file formats
  • Invalid page numbers
  • Missing required parameters
  • File processing errors

Dependencies

  • pdf-lib: For PDF manipulation
  • pdf-parse: For text extraction

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support, please:

  1. Check the documentation
  2. Open an issue on GitHub
  3. Join the n8n community