<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic legend overflow in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/legend-overflow/m-p/28125#M2142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create a print tool that can handle both short and very long legends (up to 300 entries). When the legend is long, I want to print (i.e. create a pdf file) the map plus few entries on one page, and the other entries on subsequent one or more pages. I started by creating two templates, one for the map plus the legend and the other one with just the legend, so that I can create two or more pdf files and then append the subsequent pages to the first one. In the python script, after creating a legend object, I can check if isOverflowing = True, but how can I split the legend onto one or more pages? I thought of printing a predefined number of entries on each page, and calling the ConvertWebMapToMapDocument with a different Web_Map_as_JSON parameter each time, that is, changing the subLayerIds list in legendOptions each time I call it. I haven't tried this yet, and I wonder if there is an easier way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Silvana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 14:50:01 GMT</pubDate>
    <dc:creator>SilvanaGiberti1</dc:creator>
    <dc:date>2015-02-24T14:50:01Z</dc:date>
    <item>
      <title>legend overflow</title>
      <link>https://community.esri.com/t5/python-questions/legend-overflow/m-p/28125#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create a print tool that can handle both short and very long legends (up to 300 entries). When the legend is long, I want to print (i.e. create a pdf file) the map plus few entries on one page, and the other entries on subsequent one or more pages. I started by creating two templates, one for the map plus the legend and the other one with just the legend, so that I can create two or more pdf files and then append the subsequent pages to the first one. In the python script, after creating a legend object, I can check if isOverflowing = True, but how can I split the legend onto one or more pages? I thought of printing a predefined number of entries on each page, and calling the ConvertWebMapToMapDocument with a different Web_Map_as_JSON parameter each time, that is, changing the subLayerIds list in legendOptions each time I call it. I haven't tried this yet, and I wonder if there is an easier way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Silvana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:50:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/legend-overflow/m-p/28125#M2142</guid>
      <dc:creator>SilvanaGiberti1</dc:creator>
      <dc:date>2015-02-24T14:50:01Z</dc:date>
    </item>
  </channel>
</rss>

