File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2222 "flask_uploads" ,
2323 "docx" ,
2424 "pptx" ,
25- "PyPDF2 " ,
25+ "pypdf " ,
2626 "mammoth" ,
2727 "weasyprint" ,
2828 "markdownify" ,
Original file line number Diff line number Diff line change 22import docx
33import pptx
44import fitz
5- import PyPDF2
5+ import pypdf
66import utils .language_support as lang
77from PIL import Image
88from 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 ]),
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ jinja2==3.1.2
77moviepy == 2.2.1
88pillow == 10.1.0
99werkzeug == 3.0.1
10- pypdf2 == 3.0.1
10+ pypdf == 6.1.0
1111pymupdf == 1.24.9
1212python-docx == 1.1.2
1313python-pptx == 1.0.2
You can’t perform that action at this time.
0 commit comments