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

@@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.1.198
version = 0.1.199
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: guan
Version: 0.1.198
Version: 0.1.199
Summary: An open source python package
Home-page: https://py.guanjihuan.com
Author: guanjihuan

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