<?xml version="1.0" encoding="UTF-8"?><metadata>
<Esri>
<CreaDate>20171027</CreaDate>
<CreaTime>14170800</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20190211</ModDate>
<ModTime>115747</ModTime>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>Get Layout Templates Info</resTitle>
<date>
<createDate>20171027</createDate>
</date>
</idCitation>
<idAbs>
<para>Returns the content
of layout templates in JavaScript Object Notation
(JSON) format. Layout files (.pagx files) located in a folder are used as layout templates.
</para>
</idAbs>
<descKeys KeyTypCd="005">
<keyTyp>
<keyTyp>005</keyTyp>
</keyTyp>
<keyword>Export Web Map</keyword>
<keyword>Exportwebmap</keyword>
<keyword>Map</keyword>
<keyword>Print</keyword>
<keyword>Print Service</keyword>
<keyword>Printing</keyword>
<keyword>Printing Service</keyword>
<keyword>Server</keyword>
<keyword>Web Map</keyword>
<keyword>Web Print Service</keyword>
<keyword>Web Printing</keyword>
<keyword>Web Printing Service</keyword>
<keyword>Webmap</keyword>
<keyword>Data Frame Size</keyword>
<keyword>Dataframe Size</keyword>
<keyword>Layout</keyword>
<keyword>Template</keyword>
<keyword>Text Element</keyword>
<keyword>Textelement</keyword>
<keyword>Title</keyword>
</descKeys>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName>ArcToolbox Tool</formatName>
</distorFormat>
</distributor>
</distInfo>
<mdDateSt>20171030</mdDateSt>
<mdContact>
<rpOrgName>Environmental Systems Research Institute, Inc. (Esri)</rpOrgName>
<rpCntInfo>
<cntAddress>
<delPoint>380 New York Street</delPoint>
<city>Redlands</city>
<adminArea>California</adminArea>
<postCode>92373-8100</postCode>
<eMailAdd>info@esri.com</eMailAdd>
<country>United States</country>
</cntAddress>
<cntPhone>
<voiceNum>909-793-2853</voiceNum>
<faxNum>909-793-5953</faxNum>
</cntPhone>
<cntOnlineRes>
<linkage>http://www.esri.com</linkage>
</cntOnlineRes>
</rpCntInfo>
<role>
<RoleCd>007</RoleCd>
</role>
</mdContact>
<tool displayname="Get Layout Templates Info" name="GetLayoutTemplatesInfo" softwarerestriction="none" toolboxalias="&lt;process id=&quot;Background#1:330269011612247&quot; ticks=&quot;636855009880000000&quot; err_code=&quot;0&quot; has_error=&quot;false&quot; decimal_point=&quot;.&quot; version=&quot;1&quot; ticks2=&quot;636855009892233963&quot;&gt; &lt;tool name=&quot;ExportWebMap&quot; type=&quot;script&quot; toolboxalias=&quot;server&quot;&gt; &lt;displayname&gt;Export Web Map&lt;/displayname&gt; &lt;description&gt;Geoprocessing tool that facilitates printing from web applications.&lt;/description&gt; &lt;/tool&gt; &lt;params&gt; &lt;param name=&quot;Web_Map_as_JSON&quot; displayname=&quot;Web Map as JSON&quot; derived=&quot;false&quot; output=&quot;false&quot; datatype=&quot;GPString&quot;&gt;#&lt;/param&gt; &lt;param name=&quot;Output_File&quot; displayname=&quot;Output File&quot; derived=&quot;false&quot; output=&quot;true&quot; datatype=&quot;DEFile&quot;&gt;C:\Users\vencia\Documents\ArcGIS\Projects\LayoutTemplates\scratch\eb2bd502-2e1d-11e9-855d-dc4a3e73da7f.pdf&lt;/param&gt; &lt;param name=&quot;Format&quot; displayname=&quot;Format&quot; derived=&quot;false&quot; output=&quot;false&quot; datatype=&quot;GPString&quot;&gt;PDF&lt;/param&gt; &lt;param name=&quot;Layout_Templates_Folder&quot; displayname=&quot;Layout Templates Folder&quot; derived=&quot;false&quot; output=&quot;false&quot; datatype=&quot;DEFolder&quot;&gt;C:\Users\vencia\Desktop\Layout Templates&lt;/param&gt; &lt;param name=&quot;Layout_Template&quot; displayname=&quot;Layout Template&quot; derived=&quot;false&quot; output=&quot;false&quot; datatype=&quot;GPString&quot;&gt;1inEQUALS1ft&lt;/param&gt; &lt;/params&gt; &lt;environments /&gt; &lt;return_value&gt;C:\Users\vencia\Documents\ArcGIS\Projects\LayoutTemplates\scratch\eb2bd502-2e1d-11e9-855d-dc4a3e73da7f.pdf&lt;/return_value&gt; &lt;messages&gt; &lt;msg code=&quot;0&quot; type=&quot;2&quot;&gt;Start Time: Monday, February 11, 2019 11:56:29 AM&lt;/msg&gt; &lt;msg code=&quot;0&quot; type=&quot;0&quot;&gt;Running script Export Web Map...&lt;/msg&gt; &lt;msg code=&quot;0&quot; type=&quot;0&quot;&gt;Completed script Export Web Map...&lt;/msg&gt; &lt;msg code=&quot;0&quot; type=&quot;3&quot;&gt;Succeeded at Monday, February 11, 2019 11:56:29 AM (Elapsed Time: 0.09 seconds)&lt;/msg&gt; &lt;/messages&gt; &lt;/process&gt;">
<summary>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Geoprocessing tool that returns layout contents for the associated printing service.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</summary>
<alink_name>GetLayoutTemplatesInfo_server</alink_name>
<parameters>
<param datatype="String" direction="Output" displayname="JSON String" expression="{Output_JSON}" name="Output_JSON" type="Optional"/>
</parameters>
<returnvalues/>
<environments/>
<usage>
<bullet_item>
<para>This tool is intended to be published as a geoprocessing task within a printing service. It is also used by the preconfigured PrintingTools service.</para>
</bullet_item>
<bullet_item>
<para> The output of this tool is a string formatted as JSON. The string is a list of available layout files (.pagx files) and the following information:</para>
<bulletList>
<bullet_item>The size and units of the page layout</bullet_item>
<bullet_item>
The size of a map frame
<bulletList>
<bullet_item>If there are multiple map frames on the layout, it returns
information only for the map frame that is named WEBMAP_MAP_FRAME
</bullet_item>
</bulletList>
</bullet_item>
<bullet_item>
Availability of following layout elements:
<bulletList>
<bullet_item>Legend element</bullet_item>
<bullet_item>Title text element</bullet_item>
<bullet_item>Copyright text element</bullet_item>
<bullet_item>Author text element</bullet_item>
<bullet_item>Custom text elements and their names and existing values </bullet_item>
</bulletList>
</bullet_item>
</bulletList>
<para>The sizes are returned in the unit that is saved with the layout file.</para>
<code>
<para>A sample output JSON</para>
[{
  "layoutTemplate": "A4 Landscape",      //name of the layout
  "pageSize": [29.7, 21],                //page size
  "pageUnits": "CENTIMETER",             //page units
  "activeDataFrameSize": [27.75, 15.91], //size of the map frame
  "layoutOptions": {
    "hasAuthorText": true,               //is the predefined AuthorText available
    "hasCopyrightText": true,            //is the predefined CopyrightText available
    "hasTitleText": true,                //is the predefined TitleText available
    "hasLegend": true,                   //is legend element available
    "customTextElements": []
  }
},
{
  "layoutTemplate": "MyTemplatesWithCustomTextElements",
  "pageSize": [11, 8.5],
  "pageUnits": "INCH",
  "activeDataFrameSize": [6.65, 7.34],
  "layoutOptions": {
    "hasAuthorText": false,
    "hasCopyrightText": true,
    "hasTitleText": true,
    "hasLegend": true,
    "customTextElements": [               //available list of custom text elements
      { "CityName": "Redlands" },
      { "MapCenterCoordinates": "" }
      { "SelectedParcelID": ""}
    ]  }
}]
</code>
</bullet_item>
<bullet_item>
<para>The tool should use the same folder location that is used by the associated Export Web Map tool.</para>
</bullet_item>
<bullet_item>
<para>For more information, see Printing in web applications in the ArcGIS Enterprise help.</para>
</bullet_item>
</usage>
<scriptExamples>
<scriptExample>
<title>GetLayoutTemplatesInfo example (Python window)</title>
<para>The following script returns a list of metadata for each layout.</para>
<code xml:space="preserve">import arcpy
arcpy.GetLayoutTemplatesInfo_server(r'MyLayouts')
 
</code>
</scriptExample>
</scriptExamples>
<shortdesc>ArcGIS geoprocessing tool that returns layout contents for the associated printing service.</shortdesc>
<arcToolboxHelpPath>withheld</arcToolboxHelpPath>
</tool>
</metadata>
