Link Search Menu Expand Document

Parse IRS Form 1040 - TEMPLATES-SAMPLES

Document Parser sample in TEMPLATES-SAMPLES demonstrating ‘Parse IRS Form 1040’

2020 Form 1040.json
{
  "templateVersion": 4,
  "templatePriority": 0,
  "culture": "en-US",
  "objects": [
    {
      "id": 1638186316212,
      "objectType": "field",
      "name": "firstName",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          35.4251497005988,
          110.52582883577487,
          203.38922155688624,
          15.265998457979954
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186335679,
      "objectType": "field",
      "name": "lastName",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          236.37125748502996,
          109.91518889745566,
          232.70658682634732,
          16.48727833461835
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186355279,
      "objectType": "field",
      "name": "ssn",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          468.4670658682635,
          112.35774865073246,
          109.32934131736528,
          13.43407864302236
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186388970,
      "objectType": "field",
      "name": "amountOwed",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          505.1137724550899,
          359.6669236700077,
          71.46107784431138,
          12.823438704703161
        ],
        "pageIndex": 1
      }
    }
  ],
  "oldObjects": [
    {
      "id": 1638186316212,
      "objectType": "field",
      "name": "firstName",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          35.4251497005988,
          110.52582883577487,
          203.38922155688624,
          15.265998457979954
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186335679,
      "objectType": "field",
      "name": "lastName",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          236.37125748502996,
          109.91518889745566,
          232.70658682634732,
          16.48727833461835
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186355279,
      "objectType": "field",
      "name": "ssn",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          468.4670658682635,
          112.35774865073246,
          109.32934131736528,
          13.43407864302236
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1638186388970,
      "objectType": "field",
      "name": "amountOwe",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          505.1137724550899,
          359.6669236700077,
          71.46107784431138,
          12.823438704703161
        ],
        "pageIndex": 1
      }
    }
  ],
  "templateName": "2020 Form 1040",
  "description": "",
  "options": {
    "ocrMode": "auto",
    "ocrLanguage": "eng",
    "ocrResolution": 300,
    "ocrImageFilters": "",
    "ocrWhiteList": "",
    "ocrBlackList": ""
  }
}

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