Skip to main content
Each element in the pages array describes a single document page and in turn contains arrays of its own representing texts, tables, images, barcodes, checkmarks, and separators detected on that page. The properties of each element are used to store coordinates for the corresponding region on the image. The confidence level of the element being recognized correctly is also stored in the properties of the text elements. All text elements are placed into either the texts array or the tables array.

Property

Data type

Description

width

integer

The width of the page in pixels.

height

integer

The height of the page in pixels.

rotated

string enum

Rotation of the page relative to the original image.

Possible values:

  • none
  • clockwise
  • counterclockwise
  • upside-down

texts

object array

Array of text blocks.

tables

object array

Array of blocks containing tables.

pictures

picture object array

Array of image blocks.

barcodes

barcode object array

Array or barcode blocks.

separators

object array

Array of separator blocks.

checkmarks

object array

Array of checkmark blocks.