Convert a PDF invoice to JSON
For the case where the next step is code. The invoice comes out with the same key names every other format here produces, so nothing downstream has to know it started as a PDF.
Drop an invoice here
What do you want to do with your invoice?
Nothing is downloaded yet.
View on screen
Export to:
Seller and buyer
Line items
| # | Description | Qty | Unit | Unit price | VAT % | Net amount |
|---|
Tax breakdown and totals
| Category | Rate | Taxable base | VAT amount |
|---|
Payment and references
Remittance items
| # | Qualifier | Reference | Amount | Paid |
|---|
EDI segments
| Segment | Element | Value |
|---|
The same keys, whatever the PDF was
A PDF invoice can be three quite different documents: one with the e-invoice XML attached, one with a text layer, and one that is only an image. All three are read into the same model here, so the JSON has the same shape either way and your code does not branch on it. The payload does say which reading produced it, because a field recognised from a scan deserves a different amount of trust than one lifted out of attached XML.