pdf-inspector: Fast PDF Classification and Text Extraction in Rust

Repositoryfirecrawl/pdf-inspectorTool

Firecrawl's pdf-inspector is a high-performance Rust library designed to inspect PDFs, classify scanned versus text-based documents, and extract text into clean Markdown.

Key points

  1. Classifies documents as text-based, scanned, image-based, or mixed within 10 to 50 ms, providing confidence scores and page-level routing.
  2. Extracts position-aware text with coordinates, font details, rotation handling, and automatic multi-column reading order.
  3. Converts PDF content into clean Markdown without OCR, supporting dual-mode table detection, headings, lists, and code blocks.
  4. Supports selective local OCR via PP-OCRv6 Small using PDFium and ONNX Runtime only for pages that genuinely require it.
  5. Provides bindings for Rust, CLI, Python, Node.js, and browser-based WebAssembly environments without server round trips.

Why it matters

Many ingestion pipelines routinely route every PDF document through slow and costly OCR services. Because roughly 54 percent of PDFs contain digital text, pre-filtering and extracting text locally in under 200 ms dramatically cuts latency and compute costs.

Analysis

The project tackles a key bottleneck in data and LLM ingestion workflows by decoupling native text parsing from optical character recognition. The single-document-load design in Rust ensures low memory usage and high throughput. By supporting WebAssembly and selective on-demand OCR fallback, it suits both client-side and high-volume backend environments. With almost 19,000 GitHub stars, comprehensive package bindings, and an MIT license, the library displays significant maturity for production adoption.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Link:docling.ai

    Docling: Open-Source Document Intelligence for AI and RAG

    Docling is an open-source tool hosted by LF AI & Data that converts complex documents like PDFs, Office files, and images into structured data for AI applications. It operates locally and fully offline, preserves layouts and table structures, and provides interfaces for Python, CLI, REST APIs, and MCP.

    AI & LLMs· Tool

  • Repository:docling-project/docling

    Docling: Document Parsing for Generative AI

    Docling is an open-source Python tool designed to parse documents across multiple formats—such as PDF, office files, audio, and HTML—to prepare them for generative AI workflows.

    66kstarsPython

    AI & LLMs· Tool

  • Repository:unclecode/crawl4ai

    Crawl4AI: Open-Source LLM-Friendly Web Crawler and Scraper

    Crawl4AI is an open-source Python web crawler and scraper designed to transform web pages into clean, LLM-ready Markdown for RAG setups, AI agents, and data pipelines.

    81.2kstarsPython

    AI & LLMs· Tool

  • Repository:Stirling-Tools/Stirling-PDF

    Stirling PDF: Self-Hosted Platform for PDF Editing and Document Workflows

    Stirling PDF is an open-source PDF manipulation platform designed to run as a desktop client, in a browser, or self-hosted on private servers. It provides over 50 tools, REST APIs, and no-code pipelines to process documents without relying on external cloud providers.

    91.3kstarsJava

    Automation· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.