Start PDF Generation
URL | /client/1.0/PLUGIN/pdfPlugin/generatePdf | |
---|---|---|
Input-Parameter | Template | Template name |
Session | Session ID (to retrieve transaction data) | |
Config | PDF parameter for the generation as JSON String (optional) | |
Output-Parameter | Value | JSON Object with the parameter “jobId” (contains the generated JobID) |
Example for a call:
{
"template"
:
"templatename"
,
"session"
:
"12345678910"
,
"config"
:
"{\"orientation\" : \"Portrait\",\"page-size\" : \"A4\",\"margin-top\" : \"1in\",\"margin-bottom\" : \"1in\",\"margin-left\" : \"1in\",\"margin-right\" : \"1in\",\"footer-center\" : \"[page] / [toPage]\"}\"}"
}
Output example:
{
"value"
: {
"jobId"
:
"a1ef6b46-1671-425a-947c-d9e552d4e755"
},
"success"
:
true
}
The specified parameters for the config correspond to the parameters for wkhtmltopdf or the PdfConfig class of the wrapper. This can be used to control page formats, margins, headers, footers, etc.