Skip to content

Textract too slow for a single page PDF

0

A single page PDF Textract job which used to take about 10 seconds to complete, is now taking about 3 min.

asked 2 years ago429 views

1 Answer
1

The increased processing time for a single page PDF using Amazon Textract could be due to several factors:

  1. Document complexity: If the PDF contains complex elements like tables, images, or intricate layouts, it may require more processing time.

  2. Service load: Textract's performance can vary based on overall service demand.

  3. Network latency: If your application is in a different region from the Textract service, or if there are network issues, it could increase processing time.

  4. PDF quality: Lower quality or poorly formatted PDFs may take longer to process.

To address this issue, you could try the following:

  1. Ensure you're using the asynchronous API for better handling of longer processing times.

  2. Check if the PDF can be optimized or simplified without losing necessary information.

  3. Consider splitting larger documents into smaller chunks and processing them in parallel, although this may not be applicable for a single-page document.

  4. Verify that your AWS configuration, including IAM roles and VPC settings, is optimized for Textract access.

  5. Monitor your Textract usage and performance using AWS CloudWatch to identify any patterns or issues.

If the problem persists, it would be advisable to contact AWS support for further investigation, as this significant increase in processing time for a single page is unusual and may indicate a deeper issue.

Sources
AWS Textract issue | AWS re:Post
Textract is timing out | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.