PDF Buttons

It is possible to implement a button in th smartform, which can convert WOrdtemplates into PDFs via a click on the button. For that the following code has to be put into the smartform and has to be adjusted.

<button type="button" onbuttonclick="generateFileFromTemplate([{handler:'WordTemplateHandler',template:'super/templates/${NOW}.docx',documentPrefix:'Test_Prefix',pdf:true,attach:false,open:true}])">PDF Button</button>

The attribute “onbuttonclick” defines what functions the handler should execute.