Expand description
PDF loading layer — document loading, text extraction, line extraction.
Modules§
- annotation_
enrichment - Annotation enrichment — post-processing for extracted annotations.
- annotation_
extractor - PDF annotation extraction.
- bookmark_
extractor - PDF bookmark/outline extraction.
- chunk_
parser - Unified PDF content stream parser — matches the reference ChunkParser architecture.
- encryption
- PDF encryption detection and password-based loading.
- font
- PDF font handling — font resolution, glyph widths, and Unicode mapping.
- font_
style - Shared font name / weight helpers (DRY across Type1 / Type3 / TrueType).
- font_
type3 - Type 3 font metric normalization.
- font_
type3_ ocr - Type 3 CharProc → Unicode OCR cache (requires
image). Type 3 CharProc → Unicode cache (appearance-only fonts). - form_
extractor - AcroForm field extraction from PDF documents.
- graphics_
state - PDF graphics state tracking.
- hyperlink_
extractor - Hyperlink extraction from PDF link annotations.
- image_
codecs - Image XObject codecs (DCT / Flate / JBIG2 / JPX) for the OCR path. Image XObject codec decode for the OCR path.
- image_
extractor - PDF image extraction — find and extract inline/XObject images.
- image_
region - Cheap image-region classifier + OCR budget (native + WASM). Image-region classification for OCR routing (SRP / Strategy).
- inmem_
raster - In-memory Image-XObject → table lattice (WASM-safe; no pdfimages). In-memory raster table recovery (WASM-safe).
- line_
extractor - PDF line segment extraction — extract stroked/filled paths as LineChunks.
- loader
- PDF document loading via lopdf.
- metadata_
writer - PDF metadata writer — update document metadata (title, author, etc.) in a lopdf Document before saving.
- ocg
- Optional Content Group default visibility. Optional Content Groups (OCG) — default visibility from the catalog.
- ocr
- Pluggable raster OCR engines (Tesseract CLI / ocrs). Pluggable raster OCR engines for table recovery.
- page_
info - Page geometry extraction — MediaBox, CropBox, Rotation.
- pdf_
string - Decode PDF string objects (ISO 32000-1 §7.9.2).
- raster_
table_ ocr - Recover text signal from raster table images using local OCR.
- text_
extractor - Text extraction from PDF content streams.