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-lib-tool

v0.1.13

Published

Edit PDF files in n8n workflows using pdf-lib (merge, extract pages, rotate pages).

Downloads

557

Readme

n8n-nodes-pdf-lib-tool

Edit PDF files in n8n workflows using pdf-lib, with no external API and no system binaries.

Features

  • Merge Binary PDFs: Merge multiple binary properties from each item into one PDF.
  • Extract Pages: Build a new PDF from selected pages using a page range.
  • Rotate Pages: Rotate all pages or selected pages by 90/180/270 degrees.
  • Remove Pages: Remove selected pages from a PDF.
  • Add Text: Draw text on all pages or selected pages.
  • Fill Form: Fill out fillable fields in the PDF.
  • Custom Code: Execute custom javascript code on the PDF.
  • Pipeline: Apply multiple actions in sequence in one node.
  • Runs locally: Pure JavaScript library (pdf-lib) inside your n8n instance.

Operations

1) Merge Binary PDFs

  • Input: multiple binary properties in one item (example: data, attachment1, attachment2)
  • Output: single merged PDF in your selected output binary property

2) Extract Pages

  • Input: one source PDF binary property
  • Parameter: Pages (example: 1-3,5,8-10)
  • Output: new PDF containing only selected pages

3) Rotate Pages

  • Input: one source PDF binary property
  • Parameters:
    • Rotation: 90, 180, or 270
    • Pages To Rotate: optional range (leave empty for all pages)
  • Output: rotated PDF

4) Remove Pages

  • Input: one source PDF binary property
  • Parameter: Pages (example: 1-3,5,8-10)
  • Output: new PDF with selected pages removed

5) Add Text

  • Input: one source PDF binary property
  • Parameters:
    • Text: text to draw
    • X Position / Y Position: coordinates
    • Font Size: text size
    • Text Rotation: text rotation
    • Text Opacity: text opacity
    • Text Color (Hex): text color
    • Pages To Add Text: optional range (leave empty for all pages)
  • Output: new PDF with text added

6) Fill Form

  • Input: one source PDF binary property
  • Parameters:
    • Form Fields: list of field names and values to fill
  • Output: new PDF with form fields filled

7) Custom Code

  • Input: one source PDF binary property
  • Parameters:
    • Code: JavaScript code to manipulate the pdfDoc object using pdfLib
  • Output: manipulated PDF

8) Pipeline

  • Input: one source PDF binary property
  • Parameters:
    • Pipeline Actions: list of actions to apply in sequence (Add Text, Remove Pages, Rotate Pages)
  • Output: new PDF with all actions applied in sequence

Usage in n8n

  1. Add PDF Lib node to your workflow.
  2. Select Operation.
  3. Set input/output binary properties.
  4. Run the node.

The node returns the processed PDF in binary output and adds operation metadata under pdfLib in JSON output.

License

MIT