Invoice from Google - TEMPLATES-SAMPLES
Document Parser sample in TEMPLATES-SAMPLES demonstrating ‘Invoice from Google’
Google.json
{
"templateName": "Google Invoice",
"templateVersion": 4,
"templatePriority": 0,
"detectionRules": {
"keywords": [
"Google",
"77-0493581",
"Invoice"
]
},
"objects": [
{
"name": "invoiceId",
"objectType": "field",
"fieldProperties": {
"expression": "Invoice number:{{Spaces}}({{Digits}})",
"regex": true
},
"id": 1634132930520
},
{
"name": "dateIssued",
"objectType": "field",
"fieldProperties": {
"expression": "Issue date:{{Spaces}}({{SmartDate}})",
"regex": true,
"dataType": "date",
"dateFormat": "MMM d, yyyy"
},
"id": 1634132930521
},
{
"name": "total",
"objectType": "field",
"fieldProperties": {
"expression": "Amount due in USD:{{Spaces}}{{Number}}",
"regex": true,
"dataType": "decimal"
},
"id": 1634132930522
},
{
"name": "subTotal",
"objectType": "field",
"fieldProperties": {
"expression": "Subtotal in USD:{{Spaces}}{{Number}}",
"regex": true,
"dataType": "decimal"
},
"id": 1634132930523
},
{
"name": "taxRate",
"objectType": "field",
"fieldProperties": {
"expression": "State sales tax {{OpeningParenthesis}}{{Digits}}{{Percent}}{{ClosingParenthesis}}",
"regex": true,
"dataType": "integer"
},
"id": 1634132930524
},
{
"name": "tax",
"objectType": "field",
"fieldProperties": {
"expression": "State sales tax{{Anything}}{{Number}}{{LineEnd}}",
"regex": true,
"dataType": "decimal"
},
"id": 1634132930525
},
{
"name": "companyName",
"objectType": "field",
"fieldProperties": {
"fieldType": "static",
"expression": "Google LLC",
"regex": true
},
"id": 1634132930526
},
{
"name": "billTo",
"objectType": "field",
"fieldProperties": {
"fieldType": "rectangle",
"regex": true,
"rectangle": [
0,
152,
280,
72
],
"pageIndex": 0
},
"id": 1634132930527
},
{
"name": "billingId",
"objectType": "field",
"fieldProperties": {
"expression": "Billing ID:{{Spaces}}({{DigitsOrSymbols}})",
"regex": true
},
"id": 1634132930528
},
{
"name": "currency",
"objectType": "field",
"fieldProperties": {
"fieldType": "static",
"expression": "USD",
"regex": true
},
"id": 1634132930529
},
{
"name": "table1",
"objectType": "table",
"tableProperties": {
"start": {
"expression": "Description{{Spaces}}Interval{{Spaces}}Quantity{{Spaces}}Amount",
"regex": true
},
"end": {
"expression": "Subtotal in USD",
"regex": true
},
"row": {
"expression": "{{LineStart}}{{Spaces}}(?<description>{{SentenceWithSingleSpaces}}){{Spaces}}(?<interval>{{3Letters}}{{Space}}{{Digits}}{{Space}}{{Minus}}{{Space}}{{3Letters}}{{Space}}{{Digits}}){{Spaces}}(?<quantity>{{Digits}}){{Spaces}}(?<amount>{{Number}})",
"regex": true
},
"columns": [
{
"name": "quantity",
"dataType": "integer"
},
{
"name": "amount",
"dataType": "decimal"
}
]
},
"id": 1634132930530
}
]
}
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.
Download Source Code (.zip)
return to the previous page explore Document Parser endpoint
Copyright © 2016 - 2023 PDF.co