aws-samples / aws-samples/amazon-textract-textractor
Enhancement: Allow json parser to also set the images by passing the original document
Open
- Dominant language
- Jupyter Notebook
- Stars
- 493
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Description
Current work around for pdf is the following:
```python
from pdf2image import convert_from_path
from textractor.entities.document import Document
# Loading the JSON response
document = Document.open("output.json")
# Loading the images and setting them on each page
images = convert_from_path('doc.pdf')
for page, image in zip(document.pages, images):
page.image = image
```
Contributor guide
Assessment
This issue has not been assessed yet.