dojo.require("esri.tasks.PrintParameters");
Description
(Added at v2.6)
Input parameters for the
PrintTask.
Samples
Search for
samples that use this class.
Constructors
Properties
Constructor Details
Creates a new PrintParameters object.
Sample:
var params = new esri.tasks.PrintParameters();
Property Details
Additional parameters for the print service. When an arcpy script is published as a custom print service there may be additional parameters associated with the print service. To determine the extra parameters visit the ArcGIS REST Services Directory page for the print service. At version 3.0, this property is supported by the Print Task. (Added at v3.0)
The map to print.
Sample:
params.map = map;
Specify the output spatial reference for the printout. (Added at v3.0)
Defines the layout template used for the printed map.
Sample:
var template = new esri.tasks.PrintTemplate();
template.exportOptions = {
width: 500,
height: 400,
dpi: 96
};
template.format = "PDF";
template.layout = "MAP_ONLY";
template.preserveScale = false;
var params = new esri.tasks.PrintParameters();
params.map = map;
params.template = template;