Expand description
§ethos-pdf — WS-ENGINE lane (Milestone A)
The only crate that loads PDFium (invariant 3). Everything crossing
EthosPdfBackend is already normalized + quantized (invariant 1: quantize-at-
extraction lives here); public schemas/APIs never see PDFium types.
This first WS-ENGINE slice uses a small dynamic FFI boundary over the PDFium C API.
Runtime loading is explicit through ETHOS_PDFIUM_LIBRARY_PATH, so parser output
cannot accidentally depend on an unknown library from a host search path.
Structs§
- Geometry
Probe Char - Per-character geometry probe record.
- Geometry
Probe Page - Per-page debug geometry signals.
- Geometry
Probe Report - Debug-only report of PDFium text geometry signals.
- Geometry
Probe Run - Parser-like text run with alternative PDFium geometry sources.
- Geometry
Probe Symbols - Optional PDFium geometry symbols discovered at runtime.
- Pdfium
Backend - PDFium backend implementation.
- RawCrop
- Raw crop rendered from a PDF page.
Constants§
- PDFIUM_
ARTIFACT_ PATH_ ENV - Optional environment variable containing the downloaded Phase 1 release artifact path.
- PDFIUM_
LIBRARY_ PATH_ ENV - Environment variable containing the exact PDFium dynamic library path.
- PDFIUM_
VERSION_ ENV - Optional environment variable carrying the pinned PDFium release/version string.
- QUANTUM_
PER_ POINT - Profile quantization: 100 quanta per PDF point.