pdf-inspector

Fast Rust library for PDF inspection, classification, and text extraction. Intelligently detects scanned vs text-based PDFs to enable smart routing decisions.

235 articles 9.9k View on GitHub ↗
235 articles
How pdf-inspector Extracts MCID References from Tagged PDFs via Structure Tree Parsing

Discover how pdf-inspector extracts MCID references from tagged PDFs. It parses the Structure Tree to map MCIDs to roles, preserving document hierarchy for accurate data extraction.

deep-dive
Sep 2, 2026
How the PDF-Inspector Vision Module Fusion Pipeline Combines Native Text with OCR Results

Discover how the PDF-Inspector vision module fuses native text with OCR results using a geometry-aware, quality-driven system. Select the best content source per page for superior accuracy.

internals
Sep 2, 2026
What Is the TiledScanDetector Threshold for Aggregate Pixel Detection in pdf‑inspector?

Discover the TiledScanDetector threshold for aggregate pixel detection in pdf-inspector. Learn how 2 million pixels trigger tiled scan identification in your documents.

deep-dive
Sep 2, 2026
How pdf-inspector Uses Horizontal Projection Histograms for Robust Column Detection

Discover how pdf-inspector uses horizontal projection histograms to accurately detect columns by identifying empty vertical strips as gutters for robust page splitting.

deep-dive
Sep 2, 2026
How PDF‑Inspector's NFKC Normalization Performs Ligature Expansion

Discover how PDF-Inspector expands ligatures using NFKC normalization and explicit Latin ligature matching. Learn more about this essential text processing feature.

deep-dive
Sep 2, 2026
How pdf-inspector's Content Stream Operator State Machine Handles Tj, TJ, Td/TD, Tm, q, and Q

Explore how pdf-inspector's state machine processes content stream operators like Tj, TJ, Td, Tm, q, and Q in Rust to extract structured text and bounding boxes.

internals
Sep 2, 2026
ProcessMode::Full vs Analyze vs DetectOnly in pdf-inspector: 3 Pipeline Modes Explained

Understand ProcessMode::Full, Analyze, and DetectOnly in pdf-inspector. Learn which pipeline mode best suits your PDF analysis needs for faster results or complete conversion.

deep-dive
Sep 2, 2026
How pdf-inspector Uses Union-Find to Detect Rectangle-Based Tables in PDFs

Discover how pdf-inspector leverages the union-find algorithm to efficiently detect rectangle-based tables in PDFs by clustering overlapping elements using a disjoint-set structure.

internals
Sep 2, 2026
How the Otsu Threshold Function Powers Tiled‑Scan Detection in pdf‑inspector

Learn how the Otsu threshold function in pdf-inspector detects tiled-scan PDFs by separating intra-word from inter-word gaps using variance maximization.

deep-dive
Sep 2, 2026
How PDFium Is Integrated into the pdf-inspector OCR Rendering Pipeline

Discover how pdf-inspector integrates PDFium as its rasterization engine using a Rust wrapper to convert PDF pages into images for OCR backends. Learn about the OCR rendering pipeline.

internals
Sep 2, 2026
How pdf-inspector Determines Heading Levels from Font-Size Ratios

Discover how pdf-inspector uses font-size ratios to determine heading levels. Learn about base font size comparison, bold text tiers, and fallback thresholds.

how-to-guide
Sep 2, 2026
How pdf-inspector Makes CMap Decisions for Font Width and Encoding

Discover how pdf-inspector decides CMap for font width and encoding by sampling, scoring Unicode quality, and caching the best choice after analyzing 240 bytes of data.

internals
Sep 2, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →