Skip to main content
Version: v2023.18.0

GET Document Layout

This API allows you to retrieve the layout information of a document.

API Description

Endpoint:

GET /documents/{documentId}/layout

Resource path:

VariableRequiredDescription
documentIdYesThe ID of a document

Response :

TypeDescription
DocumentLayoutThe layout information of the document

Example

Get Document Layout

The following example retrieves the layout information of a document with the specified document ID.

curl -X GET 'http://localhost:8761/documents/b64_bm9yZS92SDMtMS0xMTh1735080237/layout'

Result

The following example show a DocumentLayout for a PDF of wo pages.

{
"type": "com.arondor.viewer.client.api.document.DocumentPageLayout",
"documentId": {
"id": "b64_N2U5MzY0MmQtYTQ4YS00MzBlLThiYWYtMjhhMjdlNGZlMDQz"
},
"documentTitle": null,
"mimeType": "application/pdf",
"pageDimensionsList": [
{
"width": 595,
"height": 841,
"rotation": 0,
"dpi": 72,
"pageLayers": null
},
{
"width": 595,
"height": 841,
"rotation": 0,
"dpi": 72,
"pageLayers": null
}
]
}