amazon-textract-textractor icon indicating copy to clipboard operation
amazon-textract-textractor copied to clipboard

Add LazyObject to lazy load pdf to image conversion

Open Belval opened this issue 1 year ago • 0 comments

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.

Belval avatar Mar 01 '24 16:03 Belval