Printing parameters

Discussion created by scotilen on Oct 11, 2013
Latest reply on Dec 25, 2013 by georgebush
Good morning,

We are trying to use the Javascript API of Arcgis to make the print functionality. This function is working very well. Just you know i'm creating the template with the following parameters:

var plate = new PrintTemplate();
     plate.layout = plate.label = ch;
     plate.format = "PDF";
     plate.layoutOptions = {
     "customTextElements": [],
          "legendLayers": [legendLayer]

My only doubt is how to define the paper size desired since we have only one template (.mxd) created in Arcgis Server. Is there any parameter i could use to define this option ?

I have a simple restrict: I can't create more then one template (.mxd) file. 

Thanks for your attention,
José Augusto Alves de Oliveira