<?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: Multiple Map Series into PDF in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112816#M47367</link>
    <description>&lt;P&gt;I know the Esri folks have talked about a forthcoming &lt;STRONG&gt;Map Book &lt;/STRONG&gt;tool that might be able to do something like this, if I recall. For the time being, however, you'd have to do it yourself using the &lt;STRONG&gt;arcpy.mp&lt;/STRONG&gt; submodule in Python. Which, as you mention, is not the ideal solution for you.&lt;/P&gt;&lt;P&gt;Just to elaborate on that anyway, though, since it's the most direct solution without leaving ArcGIS Pro, you would have something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os

aprx = arcpy.mp.ArcGISProject('path/to/your/project.aprx')

lyt1 = aprx.listLayouts('name-of-first-layout')[0]
lyt2 = aprx.listLayouts('name-of-second-layout')[0]
lyt3 = aprx.listLayouts('name-of-third-layout')[0]
lyt4 = aprx.listLayouts('name-of-fourth-layout')[0]

# Access your features, either through a cursor or something.
# Depends on your situation, maybe, but I use the ArcGIS Python API, as I am working with web layers and find it easier.

for f in features:
    # Create a PDF with feature-based name
    pdfDoc = arcpy.mp.PDFDocumentCreate('path/to/PDF.pdf')

    # Adjust your layouts' extent, text, etc
    # Again, depends entirely on your particular layout

    # Export layouts to temp files
    lyt1.exportToPDF('temp_1.pdf')
    lyt2.exportToPDF('temp_2.pdf')
    lyt3.exportToPDF('temp_3.pdf')
    lyt4.exportToPDF('temp_4.pdf')

    # Append temp files to main PDF doc
    pdfDoc.appendPages('temp_1.pdf')
    pdfDoc.appendPages('temp_2.pdf')
    pdfDoc.appendPages('temp_3.pdf')
    pdfDoc.appendPages('temp_4.pdf')

    # Save and close PDF doc
    pdfDoc.saveAndClose()
    del pdfDoc

    # Remove temp files
    os.remove('temp_1.pdf')
    os.remove('temp_2.pdf')
    os.remove('temp_3.pdf')
    os.remove('temp_4.pdf')&lt;/LI-CODE&gt;&lt;P&gt;There's a &lt;EM&gt;lot &lt;/EM&gt;more to it than that, but it may already be more than you want to deal with if you're not into Python solutions.&lt;/P&gt;&lt;H2&gt;Alternative: Secondary Software&lt;/H2&gt;&lt;P&gt;An alternate approach to this problem is to use additional software. There exist a number of options to address this very situation, ranging from free and open-source to paid options, but the simple fact is that if you don't want to get into the Python, you'll need to merge your PDFs using something other than Pro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I'd point you to &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/multiple-pages-in-a-single-layout/idi-p/1016485" target="_blank"&gt;this Idea I posted&lt;/A&gt; that would allow for a single "layout" to consist of multiple pages. If it were implemented, your problem would be solved! Just put all 4 pages together in one layout! It's a trivial matter in software like QGIS, but still lacking in Pro. Give it a vote!&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 12:17:59 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-11-01T12:17:59Z</dc:date>
    <item>
      <title>Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112786#M47364</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;I'm searching for a way to export multiple map series into pdfs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have 4 different layouts, each being a map series, and I'm trying to write a script that appends:&lt;/P&gt;&lt;P&gt;Layout 1 Page 1 + Layout&amp;nbsp; 2&amp;nbsp; Page 1 +&amp;nbsp; Layout&amp;nbsp; 3&amp;nbsp; Page 1 +&amp;nbsp; Layout&amp;nbsp; 4&amp;nbsp; Page 1 into one pdf...&lt;/P&gt;&lt;P&gt;that should loop based on the number of pages in the map series (each map series has the same amount).&lt;/P&gt;&lt;P&gt;(for example: 50 pdfs with 4 pages each)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not a python pro so I would be grateful for any suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance Fynn&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112786#M47364</guid>
      <dc:creator>FynnScharpen</dc:creator>
      <dc:date>2021-11-01T09:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112816#M47367</link>
      <description>&lt;P&gt;I know the Esri folks have talked about a forthcoming &lt;STRONG&gt;Map Book &lt;/STRONG&gt;tool that might be able to do something like this, if I recall. For the time being, however, you'd have to do it yourself using the &lt;STRONG&gt;arcpy.mp&lt;/STRONG&gt; submodule in Python. Which, as you mention, is not the ideal solution for you.&lt;/P&gt;&lt;P&gt;Just to elaborate on that anyway, though, since it's the most direct solution without leaving ArcGIS Pro, you would have something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os

aprx = arcpy.mp.ArcGISProject('path/to/your/project.aprx')

lyt1 = aprx.listLayouts('name-of-first-layout')[0]
lyt2 = aprx.listLayouts('name-of-second-layout')[0]
lyt3 = aprx.listLayouts('name-of-third-layout')[0]
lyt4 = aprx.listLayouts('name-of-fourth-layout')[0]

# Access your features, either through a cursor or something.
# Depends on your situation, maybe, but I use the ArcGIS Python API, as I am working with web layers and find it easier.

for f in features:
    # Create a PDF with feature-based name
    pdfDoc = arcpy.mp.PDFDocumentCreate('path/to/PDF.pdf')

    # Adjust your layouts' extent, text, etc
    # Again, depends entirely on your particular layout

    # Export layouts to temp files
    lyt1.exportToPDF('temp_1.pdf')
    lyt2.exportToPDF('temp_2.pdf')
    lyt3.exportToPDF('temp_3.pdf')
    lyt4.exportToPDF('temp_4.pdf')

    # Append temp files to main PDF doc
    pdfDoc.appendPages('temp_1.pdf')
    pdfDoc.appendPages('temp_2.pdf')
    pdfDoc.appendPages('temp_3.pdf')
    pdfDoc.appendPages('temp_4.pdf')

    # Save and close PDF doc
    pdfDoc.saveAndClose()
    del pdfDoc

    # Remove temp files
    os.remove('temp_1.pdf')
    os.remove('temp_2.pdf')
    os.remove('temp_3.pdf')
    os.remove('temp_4.pdf')&lt;/LI-CODE&gt;&lt;P&gt;There's a &lt;EM&gt;lot &lt;/EM&gt;more to it than that, but it may already be more than you want to deal with if you're not into Python solutions.&lt;/P&gt;&lt;H2&gt;Alternative: Secondary Software&lt;/H2&gt;&lt;P&gt;An alternate approach to this problem is to use additional software. There exist a number of options to address this very situation, ranging from free and open-source to paid options, but the simple fact is that if you don't want to get into the Python, you'll need to merge your PDFs using something other than Pro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I'd point you to &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/multiple-pages-in-a-single-layout/idi-p/1016485" target="_blank"&gt;this Idea I posted&lt;/A&gt; that would allow for a single "layout" to consist of multiple pages. If it were implemented, your problem would be solved! Just put all 4 pages together in one layout! It's a trivial matter in software like QGIS, but still lacking in Pro. Give it a vote!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 12:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112816#M47367</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-11-01T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112880#M47372</link>
      <description>&lt;P&gt;The above script is great but may look a little 'long' for someone new to Python.&amp;nbsp; The sample below is directly from the PDFDocument class in the arcpy.mp help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/pdfdocument-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/pdfdocument-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following lines of code are the minimum needed to append 3 PDFs (multi-page or not) into a single multi-page PDF.&amp;nbsp; The example above does the extra work of cleaning up the individual PDFs.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pdfDoc = arcpy.mp.PDFDocumentCreate(pdfPath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pdfDoc.appendPages(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"C:\Projects\YosemiteNP\Title.pdf"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pdfDoc.appendPages(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"C:\Projects\YosemiteNP\MapPages.pdf"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pdfDoc.appendPages(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"C:\Projects\YosemiteNP\ContactInfo.pdf"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pdfDoc.saveAndClose()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jeff - arcpy.mp and Layout teams&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112880#M47372</guid>
      <dc:creator>JeffreyBarrette</dc:creator>
      <dc:date>2021-11-01T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112882#M47373</link>
      <description>&lt;P&gt;The tricky part is getting this to work as a map series, instead of doing it manually for each feature in a layer. Can't wait for that Map Book!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1112882#M47373</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-11-01T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1114402#M47551</link>
      <description>&lt;P&gt;First of all thank you jcarlson! I just started with arcpy so this will help a lot. I used Adobe Acrobat DC before the problem is since im having multiple map series i have to do the merg 100+ times. The only thing thats mising is how i gonna loop your script to repeat it over and over again. Thanks anyway Fynn&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 07:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1114402#M47551</guid>
      <dc:creator>FynnScharpen</dc:creator>
      <dc:date>2021-11-05T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map Series into PDF</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1114475#M47557</link>
      <description>&lt;P&gt;No problem!&lt;/P&gt;&lt;P&gt;To loop over things, you'll just need to use a &lt;STRONG&gt;search cursor&lt;/STRONG&gt; in arcpy, or iterate over a list of features generated via the ArcGIS Python API.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 14:16:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/multiple-map-series-into-pdf/m-p/1114475#M47557</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-11-05T14:16:19Z</dc:date>
    </item>
  </channel>
</rss>

