The node Download gives you the possibility to both autogenerate a document (PDF) and download it.

Copy the following code to your script:

<node id="contract" type="Download">

<name>Example how to download a template</name>

<title>The title of the node</title>



   <attachment templateCode="doc002" />



After copying it, do the following:

1. Make sure the node id is unique

2. You can give the node a descriptive name

3. Change the title, it will be visible on top of the screen

4. Change the text, it's the subtitle and visible

5. Make sure the templateCode is referring to the code in the template library