File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def _run(self, command):
41
41
setup (
42
42
# include data files
43
43
name = "amazon-textract-textractor" ,
44
- version = "1.8.1 " ,
44
+ version = "1.8.2 " ,
45
45
license = "Apache 2.0" ,
46
46
description = "A package to use AWS Textract services." ,
47
47
url = "https://github.com/aws-samples/amazon-textract-textractor" ,
Original file line number Diff line number Diff line change 1
- __version__ = "1.8.1 "
1
+ __version__ = "1.8.2 "
2
2
3
3
from .textractor import Textractor
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def _get_document_images_from_path(self, filepath: str) -> List[Image.Image]:
135
135
file_obj = s3_client .get_object (Bucket = bucket , Key = key ).get ("Body" ).read ()
136
136
if filepath .lower ().endswith (".pdf" ):
137
137
if IS_PDF_RENDERING_ENABLED :
138
- images = rasterize_pdf (bytearray ( file_obj ) )
138
+ images = rasterize_pdf (file_obj )
139
139
else :
140
140
raise MissingDependencyException (
141
141
"pdf2image is not installed. If you do not plan on using visualizations you can skip image generation using save_image=False in your function call."
You can’t perform that action at this time.
0 commit comments