Intersection

Extracts a target line at the intersection of a horizontal line defined by an anchor, and a vertical line defined by a second anchor:

Click to enlarge

For example, the Intersection method is an alternative to the Row method when a table contains optionally empty cells. A row's tiebreaker can return lines from unintended columns if cells are unpredictably populated.

Parameters
Examples

Parameters

Note: For the full list of parameters available for this method, see Global parameters for methods. The following table shows parameters most relevant to or specific to this method.

keyvaluedescription
id (required)intersection
verticalAnchor (required)Anchor objectAn anchor object that defines a vertical line that bisects that anchor. Sensible extracts the line that's at the intersection of this vertical line and the horizontal line defined by the field's anchor. The Vertical Anchor can be on a different page from the anchor.
offsetXnumber in inches. default: 0Offsets the vertical line that bisects the vertical anchor. Positive values offset to the right, negative values offset to the left.
offsetYnumber in inches. default: 0Offsets the horizontal line that bisects the anchor. Positive values offset down the page, negative values offset up the page.
heightnumber in inches. default: 0Specifies to create a rectangular region centered at the intersection point. Sensible extracts lines contained in the region. For the full definition of "contained," see the Region method.
If you don't specify this parameter, Sensible extracts lines that overlap to any extent with the intersection point.
widthnumber in inches. default: 0Specifies to create a rectangular region centered at the intersection point. Sensible extracts lines contained in the region. For the full definition of "contained," see the Region method.
If you don't specify this parameter, Sensible extracts lines that overlap to any extent with the intersection point.

Examples

The following example shows using the Intersection method to extract a cell from a table that has empty cells.

Config

{
  "fields": [
    {
      "id": "col_3_cell",
      "anchor": "item 1b",
      "method": {
        "id": "intersection",
        "verticalAnchor": "col3",
        "width": 1.2,
        "height": 0.4
      }
    }
  ]
}

Example document

The following image shows the example document used with this example config:

Click to enlarge

Example documentDownload link

Output

{
  "col_3_cell": {
    "type": "string",
    "value": "Item 3b"
  }
}