product · inferred from evidence
amazon-textract-textractor
The GitHub repository or project name for the textractor library under the aws-samples organization.
- textractor raises `KeyError: 'Relationships'` on documents with blank pages
It is an edge case in textractor's legacy parser (introduced in 1.8.4): when a page is blank/empty, the PAGE block has no child blocks, and Textract strips the `Relationships` key entirely instead of sending an empty list. The parser assume
- Textract rejects local PDFs: `Exception: PDF must be in S3 bucket`
The Textract async API (which is what multi-page PDFs need) only accepts documents stored as S3 objects — local files are rejected with exactly that exception. So the standard answer is: upload the PDF to an S3 bucket first, then pass the S
- textractor raises `KeyError: 'Geometry'` when an expense field has an empty value
This was a real bug in textractor's expense parser. Unlike the Forms API, AnalyzeExpense does not return a bounding box for a key that has no attached value — Textract simply omits the Geometry for empty-value fields, and textractor crashed