Skip to content

Commit b667db0

Browse files
committed
Version 1.8.2
1 parent 2c560a8 commit b667db0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _run(self, command):
4141
setup(
4242
# include data files
4343
name="amazon-textract-textractor",
44-
version="1.8.1",
44+
version="1.8.2",
4545
license="Apache 2.0",
4646
description="A package to use AWS Textract services.",
4747
url="https://github.com/aws-samples/amazon-textract-textractor",

textractor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "1.8.1"
1+
__version__ = "1.8.2"
22

33
from .textractor import Textractor

textractor/textractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _get_document_images_from_path(self, filepath: str) -> List[Image.Image]:
135135
file_obj = s3_client.get_object(Bucket=bucket, Key=key).get("Body").read()
136136
if filepath.lower().endswith(".pdf"):
137137
if IS_PDF_RENDERING_ENABLED:
138-
images = rasterize_pdf(bytearray(file_obj))
138+
images = rasterize_pdf(file_obj)
139139
else:
140140
raise MissingDependencyException(
141141
"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."

0 commit comments

Comments
 (0)