robbiblubber.org
EN
Tools
Tool.NETMIT

PdfText CLI.

PdfText on the command line: xpdf reads a PDF and writes its extracted text to a text file, with an OCR fallback for scanned pages.

Robbiblubber.Util.PdfText.Cli

Features and getting started

Native runtime libraries and the required Tesseract language dataTarget frameworks: net8.0

What’s inside

  • One invocation with two arguments: PDF input and text output.
  • Uses the PdfText library and its default configuration for direct text extraction and OCR.
  • Console progress indication; a Dockerfile is included in the repository.
A small starting point Terminal
xpdf input.pdf output.txt

The executable is named xpdf. Quote input and output paths that contain spaces.

First steps

  1. Deploy the application with its runtime dependencies and provide the Tesseract language data needed for OCR.
  2. Run xpdf with the PDF path and destination text file path.
  3. Open the resulting text file or pass it to subsequent processing.
Part of

Util.NET

Tools for practical .NET tasks: console progress indicators, a common file API for local and remote storage, and PDF text extraction with OCR. rush and PdfText CLI bring these libraries to the command line.

Also part of the collection.

Feedback