The layout of the document describes the textual content of a document with positional information, based on the processed document.
Request
The layout of the document can be retrieved by a GET
request to the layout URI:
Headers
Header | Value |
---|---|
|
|
Request
Headers
Status Code | Description |
---|---|
200 (OK) | Operation is successful. |
Header | Value |
---|---|
|
|
Body (application/vnd.gini.v1+json)
Key | Type | Description |
---|---|---|
|
| Array of page objects. |
Page object
Key | Type | Description |
---|---|---|
|
| Number of the page starting with 1. |
|
| Width of the page. |
|
| Height of the page. |
|
| Array of textzone objects. |
|
| Array of region objects. |
TextZone object
Key | Type | Description |
---|---|---|
|
| Array of paragraph objects |
Paragraph object
Key | Type | Description |
---|---|---|
|
| Width of the paragraph. |
|
| Height of the paragraph. |
|
| Distance of the paragraph from the upper edge of the page. |
|
| Distance of the paragraph from the left edge of the page. |
|
| Array of line objects. |
Line object
Key | Type | Description |
---|---|---|
|
| Width of the line. |
|
| Height of the line. |
|
| Distance of the line from the upper edge of the page. |
|
| Distance of the line from the left edge of the page. |
|
| Array of word objects. |
Word object
Key | Type | Description |
---|---|---|
|
| Height of the word. |
|
| Width of the word. |
|
| Distance of the word from the left edge of the page. |
|
| Distance of the word from the upper edge of the page. |
|
| Font size of the word in points. |
| Name of the font family of the word. | |
|
| Indicates bold font style. |
|
| Text of word. |
Region object
Key | Type | Description |
---|---|---|
|
| Height of the region of interest. |
|
| Width of the region of interest. |
|
| Distance of the region from the left edge of the page. |
|
| Distance of the region from the upper edge of the page. |
|
| Type of the region of interest, e.g. RemittanceSlip. |
Errors
Status Code | Description |
---|
404 (Not Found) The requested layout is invalid.