pdf-lib

PDF Library for n8n

Package Information

Released: 7/22/2025
Downloads: 251 weekly / 2,757 monthly
Latest Version: 0.1.0
Author: vvcent

Documentation

n8n-nodes-pdf-lib

This is an n8n community node package. It lets you use PDF utilities in your n8n workflows.

PDF utilities for n8n allow you to extract information from PDF files and split PDFs into smaller documents, all within your workflow automation.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Compatibility
Usage
Resources
Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

This package provides the following node:

  • PDF-LIB: A unified node that allows you to choose between different PDF operations:
    • Get PDF Info: Extracts information from a PDF file, such as the page count. Input: binary PDF. Output: JSON with pageCount.
    • Split PDF: Splits a PDF into chunks of pages. Input: binary PDF and chunk size (default 1). Output: multiple binary PDFs, each with the specified number of pages.

Compatibility

  • Requires n8n v1.0.0 or higher.
  • Developed and tested with Node.js 20+.
  • Uses the pdf-lib library for PDF processing.

Usage

  • PDF-LIB: Use this unified node to perform different PDF operations. Select the operation from the dropdown:
    • Get PDF Info: Extract the number of pages from a PDF file. Pass the PDF as a binary property (default: data).
    • Split PDF: Split a PDF into chunks of pages. Set the chunk size as needed.

The node expects the PDF input as a binary property. You can use n8n's built-in nodes to fetch or generate PDF files before processing them with this node.

Resources

Version history

  • 0.1.0: Initial release with GetPdfInfo and SplitPdf nodes.

Discussion