[POST] /pdf

[POST] /pdf

/api/dms/objects/native/contents/pdf

Description

An endpoint to download the content of multiple DMS documents as PDF document. The order of documents in pdf is the same as in the request.
The browser will directly start a download and name the file as sent within the query parameter fileName. If no fileName is given the default name will be enaio-export.pdf

Request Method

POST

Request Query Parameter

  • fileName (String): The file name how the download pdf file should be called. If it's null, then its default name is "enaio-export.pdf".

  • whitePage (Boolean): Request an empty PDF page is inserted between each document.

Response Format

application/pdf

Minimum Version

6.4.0

Request
Example

/api/dms/objects/native/contents/pdf
/api/dms/objects/native/contents/pdf?fileName=myPdf&whitePage=true

Request
Example

{ "objects": [{ "properties": { "system:objectId": { "value": "1234567" }, "system:objectTypeId": { "value": "262245" } } },{ "properties": { "system:objectId": { "value": "5566444" }, "system:objectTypeId": { "value": "262248" } } }] }

Result
Example

Pdf file with the content of the requested DMS documents. Optional there is one white page between each document.