<?xml version="1.0" encoding="UTF-8"?><metadata>
<Esri>
<CreaDate>20181105</CreaDate>
<CreaTime>08565700</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20250623</ModDate>
<ModTime>104329</ModTime>
<scaleRange>
<minScale>150000000</minScale>
<maxScale>5000</maxScale>
</scaleRange>
<ArcGISProfile>ItemDescription</ArcGISProfile>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>Get Layout Templates Info</resTitle>
<date>
<createDate>20181105</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>
<searchKeys>
<keyword>data frame size</keyword>
<keyword>dataframe size</keyword>
<keyword>export web map</keyword>
<keyword>exportwebmap</keyword>
<keyword>layout</keyword>
<keyword>map</keyword>
<keyword>print</keyword>
<keyword>print service</keyword>
<keyword>printing</keyword>
<keyword>printing service</keyword>
<keyword>server</keyword>
<keyword>template</keyword>
<keyword>text element</keyword>
<keyword>textelement</keyword>
<keyword>title</keyword>
<keyword>web map</keyword>
<keyword>web print service</keyword>
<keyword>web printing</keyword>
<keyword>web printing service</keyword>
<keyword>webmap</keyword>
</searchKeys>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName>ArcToolbox Tool</formatName>
</distorFormat>
</distributor>
</distInfo>
<mdDateSt Sync="TRUE">20221023</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 base_path="U:/" displayname="Get Layout Templates Info" name="GetLayoutTemplatesInfo" softwarerestriction="none" toolboxalias="91FC2659A8B94D0B91B87F89FD149546">
<summary>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</summary>
<alink_name>GetLayoutTemplatesInfo_server</alink_name>
<usage>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&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.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt; 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:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The size and units of the page layout&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The size of a map frame&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If there are multiple map frames on the layout, it returns information only for the map frame that is named WEBMAP_MAP_FRAME &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Availability of following layout elements:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Legend element&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Title text element&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Copyright text element&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Author text element&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Custom text elements and their names and existing values &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The sizes are returned in the unit that is saved with the layout file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A sample output JSON&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[{    "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": ""}      ]    }  }]&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The tool should use the same folder location that is used by the associated Export Web Map tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;For more information, see Printing in web applications in the ArcGIS Enterprise help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</usage>
<scriptExamples>
<scriptExample>
<title>GetLayoutTemplatesInfo example (Python window)</title>
<para>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;The following script returns a list of metadata for each layout.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</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>
<parameters>
<param datatype="String" direction="Input" displayname="Layout Item ID" expression="{Layout_Item_ID}" name="Layout_Item_ID" type="Optional">
<dialogReference>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</dialogReference>
</param>
</parameters>
</tool>
<mdHrLv>
<ScopeCd value="005"/>
</mdHrLv>
</metadata>
