Live demo
Check the checker.
The AI results below came from a real run. The checks run here in your browser with the same rules as the script. Edit any value and see what happens.
Try this: open PioneerConcrete_PC-3302.pdf. Its printed total (3,396.60) does not match its own lines. Now type
3369.60 into total to "fix" it. It is flagged again, because that number is not written on the invoice. The checker cannot be talked into a silent correction.-
Extracted fields