This commit is contained in:
2026-01-08 14:19:45 +08:00
parent b8fea19fc3
commit a65f06332e
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ def pdf_to_text_with_pdfplumber(pdf_path):
content = "\n\n".join(all_text)
return content
# 使用pdfminer3k将PDF文件转成文本
# 使用pdfminer3k将PDF文件转成文本(仅仅支持旧版本的 pdfminer3k
def pdf_to_text_with_pdfminer3k(pdf_path):
from pdfminer.pdfparser import PDFParser, PDFDocument
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter