import boto3
client = boto3.client('textract') with open('sample.pdf', 'rb') as document: response = client.analyze_document( Document={'Bytes': document.read()}, FeatureTypes=['TABLES', 'FORMS'] )
import boto3
client = boto3.client('textract') with open('sample.pdf', 'rb') as document: response = client.analyze_document( Document={'Bytes': document.read()}, FeatureTypes=['TABLES', 'FORMS'] )