2.17 增加读文件pdf接口测试1

This commit is contained in:
zy123 2025-02-17 11:55:03 +08:00
parent e80be4aa9c
commit 043a4dd950

View File

@ -76,7 +76,8 @@ def process_pages(get_text, common_header, total_pages):
return start_page, end_page return start_page, end_page
def read_pdf_main(pdf_path): def read_pdf_main(pdf_path):
common_header=extract_common_header(pdf_path) # common_header=extract_common_header(pdf_path)
common_header=""
try: try:
with open(pdf_path, "rb") as f: with open(pdf_path, "rb") as f:
pdf_document = PdfReader(f) pdf_document = PdfReader(f)