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:
Kevin Hu
2024-07-24 12:38:48 +08:00
committed by GitHub
parent 7e60800c95
commit 100b3165d8
4 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import logging
from PIL import Image, ImageDraw
import numpy as np
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 deepdoc.vision import OCR, Recognizer, LayoutRecognizer, TableStructureRecognizer