Select to view content in your preferred language

Printing: Setting a default value for the File name?

137
2
a week ago
TheGreenOrange
Emerging Contributor

Hi, is there a way to set a default value for the File name in the print service?
It is currently blank, and if the users do not enter anything it saves the printout as untitled.pdf.

0 Kudos
2 Replies
Priya_Das
Esri Contributor

Hi @TheGreenOrange,

By default, the PrintingTools service in ArcGIS Server uses the value "Title" of the parameter from the web map JSON to name the output file (e.g.,Title.pdf ). If this parameter is not provided, the output defaults to untitled.pdf.

You can create a custom layout in ArcGIS Pro or ArcMap and add a dynamic text element for the map title

<dyn type="layout" property="metadata" attribute="title" emptyStr="DefaultMapTitle"/>

Share custom layouts for printing from ArcGIS Pro: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/tutorial-publish-additional-...

Export Web Map (Server):https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/export-web-map.htm

You can also use  Web AppBuilder or Experience Builder: Print Widget allows users to enter a title, which becomes the file name

0 Kudos
TheGreenOrange
Emerging Contributor

Hi, that dynamic text element doesn't work. The File Name is still blank by default. This is in the javascript 4 environment. It works fine in js 3

0 Kudos