<?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 How can I export multiple layouts into the same PDF? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-export-multiple-layouts-into-the-same/m-p/1430080#M11507</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to export multiple layouts into the same PDF? Can this be achieved within ArcGIS, or would I need to use other non-ArcGIS packages?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 09:58:24 GMT</pubDate>
    <dc:creator>MaxW</dc:creator>
    <dc:date>2024-05-10T09:58:24Z</dc:date>
    <item>
      <title>How can I export multiple layouts into the same PDF?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-export-multiple-layouts-into-the-same/m-p/1430080#M11507</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to export multiple layouts into the same PDF? Can this be achieved within ArcGIS, or would I need to use other non-ArcGIS packages?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 09:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-export-multiple-layouts-into-the-same/m-p/1430080#M11507</guid>
      <dc:creator>MaxW</dc:creator>
      <dc:date>2024-05-10T09:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export multiple layouts into the same PDF?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-export-multiple-layouts-into-the-same/m-p/1430381#M11508</link>
      <description>&lt;P&gt;You can do it for example with arcpy.&lt;/P&gt;&lt;P&gt;You need to crate PDF file, then access every single layout in your project, export it and append to the created PDF file.&lt;/P&gt;&lt;P&gt;Your script can look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")
layouts = aprx.listLayouts()

pdf = arcpy.mp.PDFDocumentCreate(r"path\test.pdf")
for layout in layouts:
    page = layout.exportToPDF(layout.name + ".pdf", layers_attributes="NONE")
    pdf.appendPages(page)
pdf.saveAndClose()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can run it directly in ArcGIS Pro Python Window. You need replace "path\test.pdf" string with your real path.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image 003.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103725iAB670326E1406E59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Image 003.png" alt="Image 003.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 10:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-export-multiple-layouts-into-the-same/m-p/1430381#M11508</guid>
      <dc:creator>KamilNovák</dc:creator>
      <dc:date>2024-05-10T10:52:51Z</dc:date>
    </item>
  </channel>
</rss>

