Skip to main content

Module pdf

Module pdf 

Source
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.