amazon-textract-textractor
amazon-textract-textractor copied to clipboard
Add LazyObject to lazy load pdf to image conversion
Issue #, if available: #316 (related)
Description of changes: This PR would add make the PDF to image conversion lazy (only runs when a user accesses the image) to avoid a memory and performance hit when processing large PDFs. This would be the default in asynchronous API calls start_document_analysis and start_document_text_detection.
This should also be entirely backward compatible.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.