<?xml version="1.0" encoding="UTF-8"?><metadata>
    <Esri>
        <CreaDate>20181105</CreaDate>
        <CreaTime>08565700</CreaTime>
        <ArcGISFormat>1.0</ArcGISFormat>
        <SyncOnce>TRUE</SyncOnce>
        <ModDate>20191219</ModDate>
        <ModTime>142752</ModTime>
    </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>
    </dataIdInfo>
    <distInfo>
        <distributor>
            <distorFormat>
                <formatName>ArcToolbox Tool</formatName>
            </distorFormat>
        </distributor>
    </distInfo>
    <mdDateSt>20181105</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#2:79987166972820&quot; ticks=&quot;637123804580000000&quot; err_code=&quot;0&quot; has_error=&quot;false&quot; decimal_point=&quot;.&quot; version=&quot;1&quot; ticks2=&quot;637123804634904046&quot;&gt;   &lt;tool name=&quot;GetLayoutTemplatesInfo&quot; type=&quot;script&quot; toolboxalias=&quot;Printing&quot;&gt;     &lt;displayname&gt;Get Layout Templates Info&lt;/displayname&gt;     &lt;description /&gt;     &lt;fullpath&gt;H:\ArcPro\Projects\ExportWebMap\Printing.tbx\GetLayoutTemplatesInfo&lt;/fullpath&gt;   &lt;/tool&gt;   &lt;params&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:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Templates\ExportWebMapTemplates&lt;/param&gt;     &lt;param name=&quot;Output_JSON&quot; displayname=&quot;Output JSON&quot; derived=&quot;true&quot; output=&quot;true&quot; datatype=&quot;GPString&quot;&gt;[   {     &quot;layoutTemplate&quot;: &quot;A3 Landscape&quot;,     &quot;pageSize&quot;: [       42.0,       29.700000000000003     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       40.0,       21.17     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A3 Portrait&quot;,     &quot;pageSize&quot;: [       29.700000000000003,       42.0     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       27.68,       33.45     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A4 Landscape&quot;,     &quot;pageSize&quot;: [       29.700000000000003,       21.0     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       27.76,       15.92     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A4 Portrait&quot;,     &quot;pageSize&quot;: [       21.0,       29.700000000000003     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       19.02,       22.28     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Letter ANSI A Landscape&quot;,     &quot;pageSize&quot;: [       11.0,       8.5     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       10.0,       6.25     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Letter ANSI A Portrait&quot;,     &quot;pageSize&quot;: [       8.5,       11.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       7.5,       8.0     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Tabloid ANSI B Landscape&quot;,     &quot;pageSize&quot;: [       17.0,       11.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       16.0,       7.76     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Tabloid ANSI B Portrait&quot;,     &quot;pageSize&quot;: [       11.0,       17.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       10.0,       13.61     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: false,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   } ]&lt;/param&gt;   &lt;/params&gt;   &lt;environments /&gt;   &lt;return_value&gt;[   {     &quot;layoutTemplate&quot;: &quot;A3 Landscape&quot;,     &quot;pageSize&quot;: [       42.0,       29.700000000000003     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       40.0,       21.17     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A3 Portrait&quot;,     &quot;pageSize&quot;: [       29.700000000000003,       42.0     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       27.68,       33.45     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A4 Landscape&quot;,     &quot;pageSize&quot;: [       29.700000000000003,       21.0     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       27.76,       15.92     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;A4 Portrait&quot;,     &quot;pageSize&quot;: [       21.0,       29.700000000000003     ],     &quot;pageUnits&quot;: &quot;CENTIMETER&quot;,     &quot;webMapFrameSize&quot;: [       19.02,       22.28     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Letter ANSI A Landscape&quot;,     &quot;pageSize&quot;: [       11.0,       8.5     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       10.0,       6.25     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Letter ANSI A Portrait&quot;,     &quot;pageSize&quot;: [       8.5,       11.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       7.5,       8.0     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Tabloid ANSI B Landscape&quot;,     &quot;pageSize&quot;: [       17.0,       11.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       16.0,       7.76     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: true,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   },   {     &quot;layoutTemplate&quot;: &quot;Tabloid ANSI B Portrait&quot;,     &quot;pageSize&quot;: [       11.0,       17.0     ],     &quot;pageUnits&quot;: &quot;INCH&quot;,     &quot;webMapFrameSize&quot;: [       10.0,       13.61     ],     &quot;layoutOptions&quot;: {       &quot;hasTitleText&quot;: true,       &quot;hasAuthorText&quot;: true,       &quot;hasCopyrightText&quot;: false,       &quot;hasLegend&quot;: true,       &quot;customTextElements&quot;: []     }   } ]&lt;/return_value&gt;   &lt;messages&gt;     &lt;msg code=&quot;0&quot; type=&quot;2&quot;&gt;Start Time: Thursday, December 19, 2019 2:27:38 PM&lt;/msg&gt;     &lt;msg code=&quot;0&quot; type=&quot;0&quot;&gt;Running script Get Layout Templates Info...&lt;/msg&gt;     &lt;msg code=&quot;0&quot; type=&quot;0&quot;&gt;Completed script Get Layout Templates Info...&lt;/msg&gt;     &lt;msg code=&quot;0&quot; type=&quot;3&quot;&gt;Succeeded at Thursday, December 19, 2019 2:27:43 PM (Elapsed Time: 4.97 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;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</summary>
        <alink_name>GetLayoutTemplatesInfo_server</alink_name>
        <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>
