PDF电子发票解析免费版

PDF电子发票解析免费版

java识别本地的pdf文件信息和识别远程的pdf文件信息,免税的和非免税的都能识别出来,格式为:{"fh":"唐正利","fpdm":"03xxxxx1","hjse":"***","fplx":10,"spfsbh":"5xxxxx021430P","spfyhzh":"","kpfsbh":"91xxxx1Y","hwmxs":[{"hh":1,"ggxh":"","se":"***","dw":"","hwmc":"*印刷品*面向未来的创新型人才发展制度与政策:计合","dj":"36.63333333","sl":"3","je":"109.90","slv":"免税"}],"xsf

立即下载
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_37557563/article/details/97778445

 

package cn.test;

import com.alibaba.fastjson.JSONObject;

import pdf.cn.pdf.parse.PDFReaderUtil;

/**
 * @author 吴顺杰
 * 2019年7月30日
 */
public class TestA {

    public static void main(String[] args) {
        try {
            //识别远程文件
            JSONObject json = PDFReaderUtil.readReceiptPdfURL("http://60.168.130.76:9090/A/xxxxx/20190729/PjPOkdAt.pdf");
            //识别本地文件
            JSONObject json2 = PDFReaderUtil.readReceiptPdfFile("G:/PDF电子发票/淘宝/tb3.pdf");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

 

效果:{"fh":"唐正利","fpdm":"037xxx211","hjse":"***","fplx":10,"spfsbh":"51100xxxx0021430P","spfyhzh":"","kpfsbh":"9137xxxxMPHCM1Y","hwmxs":[{"hh":1,"ggxh":"","se":"***","dw":"","hwmc":"*印刷品*面xxxxxx制度与政策:计合","dj":"36.63333333","sl":"3","je":"109.90","slv":"免税"}],"xsf":"(章)","kpr":"xxx","hjje":"109.90","kpfmc":"枣xxxx口有限公司","kpfyhzh":"中国xxxxxx支行16050xxxx9100xxx027","kpje":"109.90","hwmc":"*印刷品*面向未来的创新型人才发展制度与政策合计","kprq":"2019-07-09","spfmc":"创新xxxx会","spfdzdh":"","skr":"xxxx","slv":"免税","jqbh":"661834363519","kpfdzdh":"xxxxx江,D2座1808室184xxxxx688","fphm":"0xxxx26","jym":"55xxx87109xxxx3"}

本地文件和远程的url文件  有税的和无税的都可以识别,喜欢的可以收藏一下

 我想设置积分低一点他默认给我5积分,下载的人数多了默认给我调到19积分了 想给你们优惠都没办法优惠

展开阅读全文

没有更多推荐了,返回首页