Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问下电票中的备注怎么获取 #14

Open
ilovejava15 opened this issue Nov 15, 2024 · 5 comments
Open

想问下电票中的备注怎么获取 #14

ilovejava15 opened this issue Nov 15, 2024 · 5 comments

Comments

@ilovejava15
Copy link

电票中的备注部分怎么获取,能给个例子么

@sanluan
Copy link
Owner

sanluan commented Nov 15, 2024

fp:Note</fp:Note> 应该是xml中这个节点

@ilovejava15
Copy link
Author

pdf中怎么判断呢?用户的发票都是pdf和ofd的格式。我看解析出来的是备和注之间有一大堆的内容

@ilovejava15
Copy link
Author

看您的代码中是通过正则表达式进行判断的,我这个有点懵

@sanluan
Copy link
Owner

sanluan commented Nov 19, 2024

pdf是首先提取所有文本,然后根据位置查找文字,pdf里面提取的文字不是一行一行的 而是一个字一个字的 有时候就会错乱,读取备注首先注意位置定位,其次就是可能有章里得文字

@ilovejava15
Copy link
Author

哦,还是根据位置计算的。行,我试试。您这里边能给加上么?我直接套用,嘿嘿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants