Use the new document actions method ChangeSize in the Actions.cs file to set a new document size in your template.
This can be applied to online editable templates as well as forms templates, but note the two different methods in use.
Download this template to see an example of these two methods.
Form templates:
Set the values of the variable WIDTH and HEIGHT (NB. Must be named WIDTH and HEIGHT in you projectfile.pf) in the form field in isave and use the method ChangeSize in the document action file Actions.cs in the Print, Lowres and preview Jobs.
Online editable templates:
Set the values of the variable WIDTH and HEIGHT in the form field in isave and use the method ChangeSize in the documentLoaded action.
Search for the documentLoaded in the DOTEditConfig.xml file that comes with this template package to see how to use this string:
<actionStep action=”runDocumentAction” param1=”Actions.cs” param2=”Actions.ChangeSize” />
This will result in a document change in dot edit based on the input values from the variable WIDTH and HEIGHT and are therefore, not needed in the Print Job when running Online Editing.
This is how the end user changes the document size:
Note that templates should be made with proper flex rules to create a nice output.
Use CopyFit, bumpers, horizontal and vertical groups with maximize settings.