<?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 Re: Batch export to pdf for map series in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243119#M63691</link>
    <description>&lt;P&gt;Hi Jeremiah,&lt;/P&gt;&lt;P&gt;The reason you are only getting one page instead of all pages is because you are exporting the Layout, not the MapSeries object.&amp;nbsp; Here is some code to do what you might need.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts('*MS')[0]
ms = lyt.mapSeries
ms.exportToPDF(r"C:\Temp\OutName.pdf", 'ALL',multiple_files='PDF_MULTIPLE_FILES_PAGE_NAME')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 22:03:46 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2022-12-21T22:03:46Z</dc:date>
    <item>
      <title>Batch export to pdf for map series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1242942#M63666</link>
      <description>&lt;P&gt;I am trying to automate "Export to PDF" when using map series in ArcGis Pro. I have a project that contains a few layouts, some are a series, some are not. What I am trying to accomplish is export each page as it's own pdf if a map series is enabled in a layout. Please see below snippet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeremiahMcDonald_0-1671634419119.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59014i5F2C33A88CED30CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeremiahMcDonald_0-1671634419119.png" alt="JeremiahMcDonald_0-1671634419119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works to some degree, it exports the layouts that have a map series enabled but it only exports the first page of the series. I need it to export all pages as individual .pdf's. Any help would be much appreciated, thank you. I have also attached the code to a txt file, hope it helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1242942#M63666</guid>
      <dc:creator>JeremiahMcDonald</dc:creator>
      <dc:date>2022-12-21T14:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to pdf for map series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243119#M63691</link>
      <description>&lt;P&gt;Hi Jeremiah,&lt;/P&gt;&lt;P&gt;The reason you are only getting one page instead of all pages is because you are exporting the Layout, not the MapSeries object.&amp;nbsp; Here is some code to do what you might need.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts('*MS')[0]
ms = lyt.mapSeries
ms.exportToPDF(r"C:\Temp\OutName.pdf", 'ALL',multiple_files='PDF_MULTIPLE_FILES_PAGE_NAME')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 22:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243119#M63691</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-12-21T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to pdf for map series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243768#M63766</link>
      <description>&lt;P&gt;It does not like the ('*MS')[0].&amp;nbsp;&lt;/P&gt;&lt;P&gt;throws a index out of range error. Is this some kind of wildcard?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 13:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243768#M63766</guid>
      <dc:creator>JeremiahMcDonald</dc:creator>
      <dc:date>2022-12-27T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Batch export to pdf for map series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243802#M63771</link>
      <description>&lt;P&gt;Jeremiah,&lt;/P&gt;&lt;P&gt;That is because I have a layout with a map series in a project that ends with the characters 'MS'.&amp;nbsp; For listLayouts, the first parameter takes the layout name or a wildcard '*' combined with characters that will return a unique name.&lt;/P&gt;&lt;P&gt;Arcpy.mp can be really powerful once you get the hang of it.&amp;nbsp; Here is a tutorial that might help you get a better understanding.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/tutorial-getting-started-with-arcpy-mp.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/tutorial-getting-started-with-arcpy-mp.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 16:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/batch-export-to-pdf-for-map-series/m-p/1243802#M63771</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-12-27T16:04:14Z</dc:date>
    </item>
  </channel>
</rss>

