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

已提問 1 年前檢視次數 1039 次
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 年前
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
已回答 1 年前
  • 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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南