0.1.199
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.198
|
version = 0.1.199
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.4
|
Metadata-Version: 2.4
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.198
|
Version: 0.1.199
|
||||||
Summary: An open source python package
|
Summary: An open source python package
|
||||||
Home-page: https://py.guanjihuan.com
|
Home-page: https://py.guanjihuan.com
|
||||||
Author: guanjihuan
|
Author: guanjihuan
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ def pdf_to_text_with_pdfplumber(pdf_path):
|
|||||||
content = "\n\n".join(all_text)
|
content = "\n\n".join(all_text)
|
||||||
return content
|
return content
|
||||||
|
|
||||||
# 使用pdfminer3k将PDF文件转成文本
|
# 使用pdfminer3k将PDF文件转成文本(仅仅支持旧版本的 pdfminer3k)
|
||||||
def pdf_to_text_with_pdfminer3k(pdf_path):
|
def pdf_to_text_with_pdfminer3k(pdf_path):
|
||||||
from pdfminer.pdfparser import PDFParser, PDFDocument
|
from pdfminer.pdfparser import PDFParser, PDFDocument
|
||||||
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
|
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
|
||||||
|
|||||||
Reference in New Issue
Block a user