This is an old revision of the document!
This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
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.