Coder Social home page Coder Social logo

invoice's Introduction

说明

电子发票解析工具,标准发票pdf格式

https://fp.zzutil.com/ 解析结果

截图

开发笔记

原理

主要是解析发票二维码,得到大部分信息,但缺少总金额

总金额的获取:查找和价税合计同一行的数字

乱码

有些pdf使用了内嵌字体,使用 PyMuPDF 时出现乱码,查了下没有很好的解决方法。换成 pdfplumber解决问题

发票版式

https://inv-veri.chinatax.gov.cn/fpcs/fpbs.html

发票编码

https://zhuanlan.zhihu.com/p/633025591

第2个属性值,表示发票种类代码,不同类型发票值如下。

  • 01增值税专用发票
  • 04增值税普通发票
  • 10增值税普通发票(电子)
  • 08增值税专用发票(电子)

invoice's People

Contributors

mxvc 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.