cadrumo.application.ledger.evidence_textlayer_ports module¶
Application-owned capability for reading PDF text-layer pages.
The evidence use cases decide when a deterministic text read is appropriate; the composition root supplies the reader. Keeping this contract here leaves the PDF library and its exception shape at the outer adapter boundary while the application works with in-memory bytes, page text, and its own refusal type.
- class EvidencePageTextExtractor(*args, **kwargs)[source]¶
Bases:
ProtocolRead PDF bytes into ordered, application-owned page text values.
- class EvidenceTextLayerPorts(extract_pages_text)[source]¶
Bases:
objectRequired page-text capability supplied by outer composition.
- Parameters:
extract_pages_text (EvidencePageTextExtractor)
-
extract_pages_text:
EvidencePageTextExtractor¶