Open paultipper opened 2 years ago
Can you share the document? You are correct, it is optional and should not be be accepted according to https://docs.aws.amazon.com/textract/latest/dg/API_Geometry.html, but I never saw one without Polygon, so that would be very interesting to see. @paultipper
A 12 page PDF document was processed by Textract, and I'm trying to use this package to parse the resulting response.json. The very first is a PAGE block that has the following
Geometry
element:I've loaded the response into a dictionary and then tried to instantiate the
Document
class, passing the document dictionary to the constructor; when I do so, I get the following error:It seems that the
Geometry
class expects there to be aPolygon
element within everyGeometry
element in the response JSON, even though Textract did not create such an element when it processed my PDF document.