mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 07:35:55 +08:00
pypdf2 to pypdf (#1684)
### What problem does this PR solve? pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character #59 ### Type of change - [x] Refactoring
This commit is contained in:
parent
7e60800c95
commit
100b3165d8
@ -23,7 +23,7 @@ import logging
|
|||||||
from PIL import Image, ImageDraw
|
from PIL import Image, ImageDraw
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from timeit import default_timer as timer
|
from timeit import default_timer as timer
|
||||||
from PyPDF2 import PdfReader as pdf2_read
|
from pypdf import PdfReader as pdf2_read
|
||||||
|
|
||||||
from api.utils.file_utils import get_project_base_directory
|
from api.utils.file_utils import get_project_base_directory
|
||||||
from deepdoc.vision import OCR, Recognizer, LayoutRecognizer, TableStructureRecognizer
|
from deepdoc.vision import OCR, Recognizer, LayoutRecognizer, TableStructureRecognizer
|
||||||
|
@ -79,3 +79,4 @@ word2number==1.1
|
|||||||
xgboost==2.1.0
|
xgboost==2.1.0
|
||||||
xpinyin==0.7.6
|
xpinyin==0.7.6
|
||||||
zhipuai==2.0.1
|
zhipuai==2.0.1
|
||||||
|
pypdf==4.3.0
|
||||||
|
@ -153,3 +153,4 @@ groq==0.9.0
|
|||||||
wikipedia==1.4.0
|
wikipedia==1.4.0
|
||||||
Bio==1.7.1
|
Bio==1.7.1
|
||||||
arxiv==2.1.3
|
arxiv==2.1.3
|
||||||
|
pypdf==4.3.0
|
||||||
|
@ -138,3 +138,4 @@ groq==0.9.0
|
|||||||
wikipedia==1.4.0
|
wikipedia==1.4.0
|
||||||
Bio==1.7.1
|
Bio==1.7.1
|
||||||
arxiv==2.1.3
|
arxiv==2.1.3
|
||||||
|
pypdf==4.3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user