Sample Test Service of Textract not working with pdfs, only working with image files

1

I was trying the demo service of AWS Textract with my invoice, which were in '.pdf' format. But when I uploaded it, it didn't work, no results were shown. So I tried with invoice in image format (like .png, .jpg etc), and it works! Its written that the service supports pdfs, has, png etc, but why didn't it worked for pdfs?

The demo service of AWS Textract is this: https://us-east-1.console.aws.amazon.com/textract/home?region=us-east-1#/demo

you can check the invoice in pdf here: https://www.dropbox.com/s/082rrvbcmmruovv/PFI%20050.pdf?dl=0

질문됨 일 년 전1040회 조회
3개 답변
1

Just tried the sample invoice and it worked fine. It can also happen that the Console session already timed out, then you need to refresh the web page and log in again. Besides the recommendation from AlexR, you can also use the https://github.com/aws-samples/amazon-textract-textractor/, which makes it easier calling Textract and working on the response.

AWS
답변함 일 년 전
1

I cannot access the pdf you linked, but if you are using the Console in AWS, you might need to create the s3 bucket first, as shown bellow for the Region you are trying to extract the text from the pdf. Enter image description here

In alternative you can use the AWS CLI or the SDK to call the Textact APIs: https://docs.aws.amazon.com/textract/latest/dg/analyzing-document-text.html

PS: if you think this answer is the one what helped you, please Accept it

profile pictureAWS
답변함 일 년 전
  • I have updated the question with the link for the file and webpage for the Demo Service. What I meant was using demo service of Textract with the pdf. Pdf file doesn't work, only image files.

  • Hi Tushar, did you try again after creating the s3 bucket with the pdf?

0

hi there, did you solve this issue . i also face the same problem when trying to upload a pdf and try to process it with the demo service. thanks for infos regards steffen

sthe
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠