pdf-inspector
Fast Rust library for PDF inspection, classification, and text extraction. Intelligently detects scanned vs text-based PDFs to enable smart routing decisions.
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.
How the PDF-Inspector Vision Module Fusion Pipeline Combines Native Text with OCR ResultsDiscover 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.
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.
How pdf-inspector Uses Horizontal Projection Histograms for Robust Column DetectionDiscover how pdf-inspector uses horizontal projection histograms to accurately detect columns by identifying empty vertical strips as gutters for robust page splitting.
How PDF‑Inspector's NFKC Normalization Performs Ligature ExpansionDiscover how PDF-Inspector expands ligatures using NFKC normalization and explicit Latin ligature matching. Learn more about this essential text processing feature.
How pdf-inspector's Content Stream Operator State Machine Handles Tj, TJ, Td/TD, Tm, q, and QExplore 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.
ProcessMode::Full vs Analyze vs DetectOnly in pdf-inspector: 3 Pipeline Modes ExplainedUnderstand ProcessMode::Full, Analyze, and DetectOnly in pdf-inspector. Learn which pipeline mode best suits your PDF analysis needs for faster results or complete conversion.
How pdf-inspector Uses Union-Find to Detect Rectangle-Based Tables in PDFsDiscover 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.
How the Otsu Threshold Function Powers Tiled‑Scan Detection in pdf‑inspectorLearn how the Otsu threshold function in pdf-inspector detects tiled-scan PDFs by separating intra-word from inter-word gaps using variance maximization.
How PDFium Is Integrated into the pdf-inspector OCR Rendering PipelineDiscover 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.
How pdf-inspector Determines Heading Levels from Font-Size RatiosDiscover how pdf-inspector uses font-size ratios to determine heading levels. Learn about base font size comparison, bold text tiers, and fallback thresholds.
How pdf-inspector Makes CMap Decisions for Font Width and EncodingDiscover 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.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →