问题 I already can use the textract but with JPEG files. I would like to use it with PDF files. I have the code bellow: import boto3 # Document documentName = "Path to document in JPEG" # Read document content with open(documentName, 'rb') as document: imageBytes = bytearray(document.read()) # Amazon Textract client textract = boto3.client('textract') documentText = "" # Call Amazon Textract response = textract.detect_document_text(Document={'Bytes': imageBytes}) #print(response) # Print detected