Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import boto3
|
2 |
+
|
3 |
+
client = boto3.client('textract')
|
4 |
+
with open('sample.pdf', 'rb') as document:
|
5 |
+
response = client.analyze_document(
|
6 |
+
Document={'Bytes': document.read()},
|
7 |
+
FeatureTypes=['TABLES', 'FORMS']
|
8 |
+
)
|