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-tesseractjs7

v2.4.2

Published

An n8n community node that extracts text from PDFs using their text layer or Tesseract OCR

Readme

n8n-nodes-tesseractjs7

Two n8n community nodes for extracting text from PDF documents.

PDF Recognition Preflight

The preflight node inspects every page without running OCR. It returns the document page count, a top-level recommendation and one recommendation per page. The original PDF binary is passed through unchanged.

{
  "pageCount": 4,
  "recommendedMode": "auto",
  "pages": [
    { "page": 1, "recommendedMode": "native", "wordCount": 221, "imageCoverage": 0.0158 },
    { "page": 4, "recommendedMode": "ocr", "wordCount": 0, "imageCoverage": 1 }
  ]
}

A page is recommended for OCR when its native text layer is clearly broken, contains no valid printable character, contains no words while raster images cover more than 20% of the page, or when raster images cover at least 80% and fewer than 20 native words are present. A page with sufficient native text remains native even when it also contains a large image.

The top-level recommendation is native or ocr when every page agrees, and auto for mixed documents.

PDF Text Recognition

The recognition node supports three modes:

  • Auto chooses native text or OCR separately for each selected page.
  • Native Text forces native extraction for all selected pages.
  • OCR forces OCR for all selected pages.

Pages can be selected either as an inclusive range or as a comma-separated list such as 1,5,6. The two input styles are mutually exclusive in the node interface. OCR pages are processed with up to three Tesseract workers in parallel.

Range output:

{
  "source": "mixed",
  "pageCount": 4,
  "range": { "from": 1, "to": 4 },
  "pages": [
    { "page": 1, "source": "native", "text": "Native PDF text" },
    { "page": 4, "source": "ocr", "text": "Recognized image text", "confidence": 95.2 }
  ]
}

Specific-page output:

{
  "source": "ocr",
  "pageCount": 10,
  "selectedPages": [1, 5, 6],
  "pages": [
    { "page": 1, "source": "ocr", "text": "Recognized text", "confidence": 94.1 }
  ]
}

Parameters

Preflight

  • Input PDF Field: binary property containing the PDF, default data

Recognition

  • Input PDF Field: binary property containing the PDF, default data
  • Recognition Mode: Auto, Native Text or OCR
  • Page Selection: Range or Specific Pages
  • Page From: first page in range mode, default 1
  • Page To: last page in range mode, default 0 for the document end
  • Pages: comma-separated page numbers in specific-pages mode, for example 1,5,6
  • Language: Tesseract language code, default deu
  • DPI: OCR render resolution, default 300
  • OCR Timeout: maximum OCR time per page, default 120000 ms

Behavior

  • PDF input only
  • One output item per input PDF
  • Page results remain ordered
  • German (deu) is the default OCR language
  • OCR uses Tesseract LSTM, automatic page segmentation and preserved inter-word spaces
  • No file-size limit, image input, binary OCR output or automatic DPI fallback

Development

npm ci
npm test
npm run lint