Skip to content

Commit

Permalink
Version 1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Belval committed Jun 25, 2024
1 parent 2c560a8 commit b667db0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _run(self, command):
setup(
# include data files
name="amazon-textract-textractor",
version="1.8.1",
version="1.8.2",
license="Apache 2.0",
description="A package to use AWS Textract services.",
url="https://github.com/aws-samples/amazon-textract-textractor",
Expand Down
2 changes: 1 addition & 1 deletion textractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.8.1"
__version__ = "1.8.2"

from .textractor import Textractor
2 changes: 1 addition & 1 deletion textractor/textractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _get_document_images_from_path(self, filepath: str) -> List[Image.Image]:
file_obj = s3_client.get_object(Bucket=bucket, Key=key).get("Body").read()
if filepath.lower().endswith(".pdf"):
if IS_PDF_RENDERING_ENABLED:
images = rasterize_pdf(bytearray(file_obj))
images = rasterize_pdf(file_obj)
else:
raise MissingDependencyException(
"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."
Expand Down

0 comments on commit b667db0

Please sign in to comment.