POST
Combines documents by appending them divided by a new section, paragraph or nothing.
The following example appends to given documents to create one resulting PDF.
# Request:
curl --location --request POST 'https://trial.dsserver.io/documentprocessing/document/append?returnFormat=PDF' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer GphAd1R0npJM9OuX2y9mUa4cfqPMOg6p' \
--data-raw '{
"documents":[
{
"document": "UEsDBBQAAAAIAAACAAC5EQAA[..]="
},
{
"document": "JVBERi0xLjQKMSAwIG9iago8[..]",
"documentDivider": 1
}
]
}'
# Result:
"UEsDBBQAAAAIAAACAAC5EQAAAAADKSKHJHDuHD[..]"| Name | Type | Value | Optional |
|---|---|---|---|
| return |
String | A string that specifies the format of the created document. Possible values are: "PDF", "PDFA", "RTF", "DOC", "DOCX", "HTML" and "TX". Default value is "PDF". | yes |
| Type | Value |
|---|---|
| Append |
The Append |
| Name | Type | Value | Optional |
|---|---|---|---|
| documents | Append |
The documents that are appended including divider options. | no |
| document |
Document |
Document settings to specify document properties such as title and author. | yes |
| Name | Type | Value | Optional |
|---|---|---|---|
| document | String | The document as a Base64 encoded string. | no |
| document |
Integer | The document divider option. Possible values: 1 (None), 2 (New |
yes |
| Name | Type | Value | Optional |
|---|---|---|---|
| author | String | Sets the document's author. | yes |
| creation |
Date |
Sets the document's creation date which will be saved in the document. | yes |
| last |
Date |
Sets the date the document is last modified. | yes |
| creator |
String | Sets the application, which has created the document. | yes |
| document |
String | Sets the document's subject string which will be saved in the document. PDF limitation: The length is limited to 2000 characters. | yes |
| document |
String | Sets the document's title that will be saved in the document. PDF limitation: The length is limited to 2000 characters. | yes |
| user |
String | Specifies the password for the user to open the document. | yes |
| Status | Description |
|---|---|
| 200 | On success, the HTTP status code in the response header is 200 (OK). The response body contains the resulting document encoded as a Base64 encoded string. |
| Status | Description |
|---|---|
| 401 | A 401 (Unauthorized) is returned, if the user is not authorized. |
| 400 | A 400 (Bad Request) is returned, if DS Server is not licensed or the license is invalid. |
| 400 | A 400 (Bad Request) is returned, if no data is found in the Append |
| 400 | A 400 (Bad Request) is returned, if no documents were found in the Append |
| 400 | A 400 (Bad Request) is returned, if the uploaded document is not valid. |