<?xml version="1.0" encoding="UTF-8"?><metadata>
<Esri>
<CreaDate>20171027</CreaDate>
<CreaTime>14170800</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20240425</ModDate>
<ModTime>200602</ModTime>
<scaleRange>
<minScale>150000000</minScale>
<maxScale>5000</maxScale>
</scaleRange>
<ArcGISProfile>ItemDescription</ArcGISProfile>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>GetLayoutTemplatesInfo</resTitle>
<date>
<createDate>20171027</createDate>
</date>
</idCitation>
<idAbs>
<para>Returns the content of layout templates in JavaScript Object Notation (JSON) format. Map documents (.mxd 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>
<searchKeys>
<keyword>layout</keyword>
</searchKeys>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName>ArcToolbox Tool</formatName>
</distorFormat>
</distributor>
</distInfo>
<mdDateSt Sync="TRUE">20220720</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="GetLayoutTemplatesInfo" name="GetLayoutTemplatesInfo" softwarerestriction="none" toolboxalias="83F4D369A059447CA4082D5AFFE20D1D">
<summary>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</summary>
<alink_name>GetLayoutTemplatesInfo_server</alink_name>
<parameters/>
<usage>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;LI&amp;gt;&amp;lt;P&amp;gt;This tool is intended to be published as a geoprocessing task within a printing service. It is also used by the preconfigured PrintingTools service.&amp;lt;/P&amp;gt;&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;&amp;lt;P&amp;gt; The output of this tool is a string formatted as JSON. The string is a list of available map documents (used as layout templates) and the following information:&amp;lt;/P&amp;gt;&amp;lt;UL&amp;gt;&amp;lt;LI&amp;gt;The size of the page layout&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;The size of the active data frame&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;Availability of following layout elements:&amp;lt;UL&amp;gt;&amp;lt;LI&amp;gt;Legend element&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;Title text element&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;Copyright text element&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;Author text element&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;Custom text elements and their names and existing values &amp;lt;/LI&amp;gt;&amp;lt;/UL&amp;gt;&amp;lt;/LI&amp;gt;&amp;lt;/UL&amp;gt;&amp;lt;P&amp;gt;The sizes are returned in the unit that is saved with the map document.&amp;lt;/P&amp;gt;&amp;lt;code&amp;gt;&amp;lt;P&amp;gt;A sample output JSON&amp;lt;/P&amp;gt;[{    "layoutTemplate": "A4 Landscape",      //name of the layout    "pageSize": [29.7, 21],                //page size    "activeDataFrameSize": [27.75, 15.91], //size of the active data 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],    "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": ""}      ]    }  }]&amp;lt;/code&amp;gt;&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;&amp;lt;P&amp;gt;The tool should use the same folder location that is used by the associated Export Web Map tool.&amp;lt;/P&amp;gt;&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;&amp;lt;P&amp;gt;For more information, see Printing in web applications in the ArcGIS Enterprise help.&amp;lt;/P&amp;gt;&amp;lt;/LI&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</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>
<mdHrLv>
<ScopeCd value="005"/>
</mdHrLv>
</metadata>
