Invoice extraction has a property almost no other extraction task has: the document contains a checksum of itself. Line items sum to a subtotal, tax is a stated percentage of a stated base, and the total is their sum. If the extracted numbers do not reconcile, something is wrong β and you know ...
Source: [Dev.to](https://dev.to/multigrid/build-an-invoice-extraction-service-3je)