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

@leolionart/n8n-nodes-pdf-extractor

v1.2.0

Published

n8n community node to extract text from password-protected PDFs - no external dependencies required

Readme

n8n-nodes-pdf-extractor

This is an n8n community node that extracts text from password-protected PDFs reliably using qpdf and pdftotext command-line tools.

This node was created to solve the known crashing issue with the built-in "Extract from File" PDF node.

n8n is a fair-code licensed workflow automation platform.

Features

  • Extract text from password-protected PDFs
  • Decrypt PDFs and return as binary for further processing
  • No crashes - uses battle-tested command-line tools instead of buggy JavaScript libraries
  • Layout preservation - maintains original text positioning
  • Page range selection - extract specific pages only
  • Multiple encodings - UTF-8, Latin1, ASCII7

Prerequisites

Before using this node, you must install the required tools in your n8n container:

docker exec -u root n8n apk add --no-cache qpdf poppler-utils

For persistent installation, add this to your Docker Compose file:

services:
  n8n:
    image: n8nio/n8n:latest
    # ... other config
    entrypoint: /bin/sh
    command:
      - -c
      - |
        apk add --no-cache qpdf poppler-utils
        exec tini -- /docker-entrypoint.sh

Installation

Via n8n UI (Recommended)

  1. Go to SettingsCommunity Nodes
  2. Click Install
  3. Enter: n8n-nodes-pdf-extractor
  4. Click Install

Via npm

cd ~/.n8n/nodes
npm install n8n-nodes-pdf-extractor

Operations

Extract Text

Extracts text content from a PDF file.

Parameters:

  • Binary Property: Name of the binary property containing the PDF (default: data)
  • Password: Password to decrypt the PDF (leave empty if not encrypted)

Options:

  • Layout Mode: Maintain original text layout (default: true)
  • Page Range: Extract specific pages (e.g., "1-5" or "1,3,5")
  • Output Property: JSON property name for extracted text (default: text)
  • Encoding: Text encoding (UTF-8, Latin1, ASCII7)

Decrypt Only

Decrypts a password-protected PDF and returns it as a binary file for further processing.

Example Usage

Extract text from bank statement

[Gmail Trigger] → [PDF Extractor] → [AI/LLM] → [Google Sheets]
  1. Gmail Trigger receives email with PDF attachment
  2. PDF Extractor extracts text with password
  3. AI extracts structured data
  4. Save to Google Sheets

Why This Node?

The built-in n8n "Extract from File" node uses pdf-parse JavaScript library which:

  • ❌ Crashes n8n container with certain PDF encryption types
  • ❌ Causes "SIGILL" errors on Alpine Linux
  • ❌ Has memory issues with large PDFs

This node uses:

  • qpdf - Industry-standard PDF manipulation tool
  • pdftotext (poppler-utils) - Robust text extraction from PDFs

Troubleshooting

"Required tools not found"

Install the required tools:

docker exec -u root n8n apk add --no-cache qpdf poppler-utils

"Invalid password for PDF file"

Check that the password is correct. Some PDFs use owner password vs user password.

Empty text output

The PDF might be scanned/image-based. This node extracts text layers only. For scanned PDFs, use OCR tools.

Resources

License

MIT