Giter Club home page Giter Club logo

invoice2excel's Introduction

Invoice2Excel

摘要:这篇文章介绍如何把发票内容提取出来保存到Excel中。


程序功能

程序会把发票中的内容提取出来然后写入Excel中,一个示例的发票内容如下:

发票示例

提取结果如下:

提取结果

程序使用

  • 下载代码

    git clone https://github.com/yooongchun/PDF_Invoice2Excel.git
  • 安装依赖包:

    python -m pip install -r requirements.txt
    # 或者
    pip install -r requirements.txt
  • 准备数据

    准备好PDF文件,放置到一个目录下

  • 运行程序

     # 注意:这里data指你的pdf文件放置的文件夹, -p data也可以替换为--path=data
    python Invoice2Excel.py -p data

更多

  • 运行测试,可以通过以下命令运行测试

    python Invoice2Excel.py
  • 指定输出文件位置

    # 注意:这里data.xlsx指你的pdf结果保存文件, -s data.xlsx也可以替换为--save=data.xlsx
    python Invoice2Excel.py -s data.xlsx
    # 也可以同时指定两个参数
    python Invoice2Excel.py -s data.xlsx -path=data

获取帮助

联系作者获取帮助:

invoice2excel's People

Contributors

yooongchun avatar zoz-cool avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.