Expand description
In-memory Image-XObject → table lattice (WASM-safe; no pdfimages). In-memory raster table recovery (WASM-safe).
First principles: PDF Image XObjects are the pixel source (ISO 32000).
Ruled tables are recoverable from projection of dark ink — no Poppler /
Tesseract process for page render. Cell text uses crate::pdf::ocr.
Structs§
- Raster
Candidate - Prepared OCR candidate for the two-phase (plan → OCR → finish) path.
- Raster
Candidate Meta - Serializable candidate metadata (no pixel buffer).
Enums§
- Raster
Candidate Kind - How OCR words from a raster candidate should be assembled.
Functions§
- bordered_
table_ is_ plausible - True when a recovered bordered table looks contentful enough to keep.
- build_
table_ from_ candidate - Build a
TableBorderfrom a prepared candidate + optional OCR words. - build_
text_ chunks_ from_ candidate - Convert OCR words from a text-blocks candidate into page-space
TextChunks. - collect_
raster_ candidates - Collect OCR candidates from Image XObjects (no OCR yet).
- ocr_
words_ to_ text_ chunks - Map OCR words into page-space text chunks (shared by TextBlocks assembly and Table→text fallback when a lattice cannot be formed).
- prepare_
candidate - Decode + pre-filter a single Image XObject into an OCR candidate.
- recover_
embedded_ raster_ tables - Recover bordered tables from embedded Image XObjects on a page.