Skip to end of banner
Go to start of banner

Retrieve Document Layout

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The layout of the document describes the textual content of a document with positional information, based on the processed document.

Request
Headers

Header

Value

Accept

application/vnd.gini.v1+json

Request
Headers

Status Code

Description

200 (OK)

Operation is successful.

Header

Value

Content-Type

application/vnd.gini.v1+json

Body (application/vnd.gini.v1+json)

Key

Type

Description

pages

array

Array of page objects.

Page object

Key

Type

Description

number

number

Number of the page starting with 1.

sizeX

number

Width of the page.

sizeY

number

Height of the page.

textZones

array

Array of textzone objects.

regions

array

Array of region objects.

TextZone object

Key

Type

Description

paragraphs

array

Array of paragraph objects

Paragraph object

Key

Type

Description

w

number

Width of the paragraph.

h

number

Height of the paragraph.

t

number

Distance of the paragraph from the upper edge of the page.

l

number

Distance of the paragraph from the left edge of the page.

lines

array

Array of line objects.

Line object

Key

Type

Description

w

number

Width of the line.

h

number

Height of the line.

t

number

Distance of the line from the upper edge of the page.

l

number

Distance of the line from the left edge of the page.

wds

array

Array of word objects.

Word object

Key

Type

Description

h

number

Height of the word.

w

number

Width of the word.

l

number

Distance of the word from the left edge of the page.

t

number

Distance of the word from the upper edge of the page.

fontSize

number

Font size of the word in points.

fontFamily string

Name of the font family of the word.

bold

boolean

Indicates bold font style.

text

string

Text of word.

Region object

Key

Type

Description

h

number

Height of the region of interest.

w

number

Width of the region of interest.

l

number

Distance of the region from the left edge of the page.

t

number

Distance of the region from the upper edge of the page.

type

string

Type of the region of interest, e.g. RemittanceSlip.

Errors

Status Code

Description

404 (Not Found) The requested layout is invalid.

  • No labels