Skip to content

Commit 88cab07

Browse files
committed
replace pypdf2 with pypdf
1 parent b951db2 commit 88cab07

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

any_to_any.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"flask_uploads",
2323
"docx",
2424
"pptx",
25-
"PyPDF2",
25+
"pypdf",
2626
"mammoth",
2727
"weasyprint",
2828
"markdownify",

core/image_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import docx
33
import pptx
44
import fitz
5-
import PyPDF2
5+
import pypdf
66
import utils.language_support as lang
77
from PIL import Image
88
from tqdm import tqdm
@@ -176,7 +176,7 @@ def to_frames(
176176
if doc_path_set[2] == "pdf":
177177
# Per page, convert pdf to image
178178
pdf_path = self.file_handler.join_back(doc_path_set)
179-
pdf = PyPDF2.PdfReader(pdf_path)
179+
pdf = pypdf.PdfReader(pdf_path)
180180
img_path = os.path.abspath(
181181
os.path.join(
182182
os.path.join(output, doc_path_set[1]),

gui/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def build_executable():
5454
'--hidden-import=moviepy',
5555
'--hidden-import=docx',
5656
'--hidden-import=pptx',
57-
'--hidden-import=PyPDF2',
57+
'--hidden-import=pypdf',
5858
'--hidden-import=mammoth',
5959
'--hidden-import=weasyprint',
6060
'--hidden-import=markdownify',

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jinja2==3.1.2
77
moviepy==2.2.1
88
pillow==10.1.0
99
werkzeug==3.0.1
10-
pypdf2==3.0.1
10+
pypdf==6.1.0
1111
pymupdf==1.24.9
1212
python-docx==1.1.2
1313
python-pptx==1.0.2

0 commit comments

Comments
 (0)