To change the size of your document, you will need to edit the page's meta tag in PageOptions.EditHTML with the dimensions required.
<meta name="PrintSize" content="width in mm x height in mm" />
For example:
<meta name="PrintSize" content="210x120" />
This will enable you to change width and height of the document.
If you wish to change the trim and bleed (from the default of trim = 7mm and bleed = 3mm) you will need to book this through your account manager as it will require development. This feature is being worked on so that you will be able to edit through the same steps as above.
Please note, there are existing meta tags with preset page sizes (such as letter, A4, etc) to see these tags, please click here.
Developer guide to creating new print sizes
Create a new "case" in the "_resizeDocument" function in the below file, stating the width and height in millimetres × the conversion ratio from mm to pt.
VxDOM.Print.PdfGenerator.cs #ResizeDocument
#region TRACKER-xxx Customer name
case "210x120":
width = 210 * CONVERSION_RATIO;
height = 120 * CONVERSION_RATIO;
break;
#endregion
To alter the bleed size, you can edit the "bleed" property.
e.g. Altering bleed; default 3mm, bleed 7mm trim
// The numbers for bleed are top, right, bottom, left, following the standard TRouBLe mnemonic.
this.bleed = toDoubleList("0,0,0,0”); // 0mm bleed added
this.bleed = new[] { 5.0, 5.0, 5.0, 5.0 }; // 5mm bleed
this.trim = toDoubleList(“7,7,7,7”); // 7mm trim added
this.trim = new[] { 15.0, 5.0, 5.0, 5.0 }; // 15mm top trim, then 5mm after