发票管理小工具(三):PDFMiner vs pdfminer3k vs Pdfminer.six

本文对比了Python的三个PDF文本提取库:PDFMiner(已不维护)、pdfminer3k(PDFMiner的Python 3移植版)和Pdfminer.six(社区维护的PDFMiner分支)。虽然功能相似,但Pdfminer.six是当前活跃的项目,提供从PDF源码中提取文本、位置、字体和颜色等信息。在PyCharm中安装时要注意类名冲突问题。
摘要由CSDN通过智能技术生成

发票的格式为PDF,初步想法是提取PDF的内容并转换为文本,查找资料,找到三个符合的Python package: PDFMiner , pdfminer3k和Pdfminer.six。

PDFMiner

官方描述:
PDFMiner is a text extraction tool for PDF documents.
Warning: As of 2020, PDFMiner is not actively maintained. The code still works, but this project is largely dormant. For the active project, check out its fork pdfminer.six.
意思是说,PDFMiner 是一个从PDF文档中提取文本的工具。从2020年开始,基本不再维护,可以转向Pdfminer.six。

pdfminer3k

官方描述
pdfminer3k is a Python 3 port of pdfminer. PDFMiner is a tool for extracting information from PDF documents. Unlike other PDF-related tools, it focuses entirely on getting and analyzing text data. PDFMiner allows to obtain the exact location of texts in a page, as well as other information such as fonts or lines. I

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值