Print

The Print widget works with the print service, which generates a printer-ready version of the map. You can configure the print service with custom layout templates.

Configurable attributes

The following table describes the configurable attributes of the Print widget.

AttributeDescription

serviceURL

String. There is no default—This is the URL to the Export Web Map Task REST endpoint (for example, https://arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task). You can change the URL to your Export Web Map Task.

defaultTitle

String. The default title of the printed output.

defaultAuthor

String. The default author of the printed output.

defaultCopyright

String. The default copyright of the printed output.

defaultFormat

String. The default format of the printed output.

defaultLayout

String. The default layout of the printed output.

Example

{
  "serviceURL": "//utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task",
  "defaultTitle": "ArcGIS WebMap",
  "defaultAuthor": "",
  "defaultCopyright": "",
  "defaultFormat": "PDF",
  "defaultLayout": "Letter ANSI A Landscape"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.