Link Search Menu Expand Document

Invoice with line items in EUR - TEMPLATES-SAMPLES

Document Parser sample in TEMPLATES-SAMPLES demonstrating ‘Invoice with line items in EUR’

sampleTemplate.json
{
  "templateName": "Test Template",
  "templateVersion": "4",
  "templatePriority": 0,
  "culture": "de-DE",
  "detectionRules": {
    "keywords": []
  },
  "objects": [
    {
      "name": "Date",
      "objectType": "field",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Datum:{{Spaces}}({{SmartDate}})",
        "regex": true,
        "dataType": "date",
        "dateFormat": "auto-dmy"
      }
    },
    {
      "name": "Invoice No",
      "objectType": "field",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Rechnungsnummer:{{Spaces}}({{LettersOrDigitsOrSymbols}})",
        "regex": true
      }
    },
    {
      "name": "Total",
      "objectType": "field",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Gesamt{{Anything}}({{Money}})",
        "regex": true,
        "dataType": "decimal"
      }
    },
    {
      "name": "VAT",
      "objectType": "field",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Umsatzsteuer{{Anything}}({{Money}})",
        "regex": true,
        "dataType": "decimal"
      }
    },
    {
      "name": "Amount Net",
      "objectType": "field",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Netto-Gesamtbetrag{{Spaces}}({{Money}})",
        "regex": true,
        "dataType": "decimal"
      }
    }
  ],
  "options": {
    "ocrLanguage": "deu",
    "ocrMode": "auto"
  }
}

PDF.co Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Get your PDF.co API key here!

Download Source Code (.zip)

return to the previous page explore Document Parser endpoint