| POST | /api/documentgenerator/word/generateprintabledocument |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RegisteredDocumentID | body | Guid | Yes | ID of the current document registration |
| WorkingFile | body | DocumentBase64File | No | The unsaved active document to print instead of the saved document. |
| LogoStyle | body | PrintLogoStyle | No | When printing on stationary use PrintLogoStyle.Hidden to remove subsidary logo's from the document |
| PageSetup | body | 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 .jsv suffix or ?format=jsv
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: doapigw.baasbv.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
WorkingFile:
{
ContentType: String,
Content: String
},
LogoStyle: Colour,
PageSetup:
{
FirstPageTray: 0,
OtherPagesTray: 0
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
File:
{
ContentType: String,
Content: String
}
}