DigiOffice Gateway Web Services

<back to all web services

GenerateWordPrintableDocument

Generate a (corporate identity) printable document based on an existing document registration or working file.

Requires Authentication
The following routes are available for this service:
All Verbs/api/documentgenerator/word/generateprintabledocument
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Generate a (corporate identity) printable document based on an existing document registration or working file.
*/
@Api(Description="Generate a (corporate identity) printable document based on an existing document registration or working file.")
open class GenerateWordPrintableDocument : IGenerateWordPrintableDocument, IRegisteredDocumentRequest
{
    /**
    * ID of the current document registration
    */
    @ApiMember(Description="ID of the current document registration", IsRequired=true)
    var RegisteredDocumentID:UUID? = null

    /**
    * The unsaved active document to print instead of the saved document.
    */
    @ApiMember(Description="The unsaved active document to print instead of the saved document.")
    var WorkingFile:DocumentBase64File? = null

    /**
    * When printing on stationary use PrintLogoStyle.Hidden to remove subsidary logo's from the document
    */
    @ApiMember(Description="When printing on stationary use PrintLogoStyle.Hidden to remove subsidary logo's from the document")
    var LogoStyle:PrintLogoStyle? = null

    /**
    * Represents a subset of the page setup properties of a section.
    */
    @ApiMember(Description="Represents a subset of the page setup properties of a section.")
    var PageSetup:WordPageSetup? = null
}

open class DocumentBase64File
{
    var ContentType:String? = null
    var Content:String? = null
}

enum class PrintLogoStyle
{
    Colour,
    Invisible,
}

open class WordPageSetup
{
    var FirstPageTray:Int? = null
    var OtherPagesTray:Int? = null
}

open class GenerateWordPrintableDocumentResponse : IGenerateWordPrintableDocumentResponse
{
    /**
    * The file to print
    */
    @ApiMember(Description="The file to print")
    var File:DocumentBase64File? = null
}

Kotlin GenerateWordPrintableDocument DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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: digiofficeapigateway.deltares.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
	}
}