All Verbs | /api/documentgenerator/word/generateprintabledocument |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RegisteredDocumentID | query | Guid | Yes | ID of the current document registration |
WorkingFile | query | DocumentBase64File | No | The unsaved active document to print instead of the saved document. |
LogoStyle | query | PrintLogoStyle | No | When printing on stationary use PrintLogoStyle.Hidden to remove subsidary logo's from the document |
PageSetup | query | WordPageSetup | No | Represents a subset of the page setup properties of a section. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ContentType | form | string | No | |
Content | form | string | No |
Colour | |
Invisible |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
FirstPageTray | form | int | No | |
OtherPagesTray | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
File | form | DocumentBase64File | No | The file to print |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/documentgenerator/word/generateprintabledocument HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"RegisteredDocumentID":"00000000-0000-0000-0000-000000000000","WorkingFile":{"ContentType":"String","Content":"String"},"LogoStyle":"Colour","PageSetup":{"FirstPageTray":0,"OtherPagesTray":0}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"File":{"ContentType":"String","Content":"String"}}