Skip to content

Commit 969c9c6

Browse files
committed
Fix error when importing package
1 parent a224745 commit 969c9c6

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include LICENSE.txt

pdf2image/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .pdf2image import *

pdf2image/pdf2image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from PIL import Image
33
from io import BytesIO
44

5-
def convert_from_path(pdf_path, save_path=None, dpi=200):
5+
def convert_from_path(pdf_path, dpi=200):
66
"""
77
Description: Convert PDF to Image
88
Parameters:
@@ -27,7 +27,7 @@ def convert_from_path(pdf_path, save_path=None, dpi=200):
2727

2828
return images
2929

30-
def convert_from_bytes(pdf_file, save_path=None, dpi=200):
30+
def convert_from_bytes(pdf_file, dpi=200):
3131
"""
3232
Description: Convert PDF to Image
3333
Parameters:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
setup(
1010
name='pdf2image',
1111

12-
version='0.1.0',
12+
version='0.1.4',
1313

1414
description='A wrapper around the pdftoppm command line tool to convert pdf to a PIL Image list.',
1515

0 commit comments

Comments
 (0)