service · inferred from evidence
Textract
AWS service for document text and data extraction.
- Textract rejects local PDFs: `Exception: PDF must be in S3 bucket`
Running `python3 textractor.py --documents document-name.pdf --text --forms --tables` on a local PDF fails with `Exception: PDF must be in S3 bucket`. Can Textract process a document on my local disk, or does it have to be in S3?
- textractor raises `KeyError: 'Geometry'` when an expense field has an empty value
I call `textract.start_expense_analysis` on a multi-page invoice PDF stored in S3. When I access `document.expense_documents`, I get `KeyError: 'Geometry'`. Debugging the textractor package, I found the Geometry part is missing for an `Expe