<?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 Data Driven pages PDF (pageRow) Question in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-pdf-pagerow-question/m-p/1123979#M8429</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Trying to export some data driven pages with dynamic names on multipage PDFs. The script works but exports only the first maps pageRow for each PDF ("ADRESS" = 1000 BISON AVE). Am I misunderstanding how pageRow works? I figured it would be dynamic for each indexed feature. Image of exported PDFs below as well as the script I am using. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanBaltierra_0-1638991206563.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29154i620788896A9A6DDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JordanBaltierra_0-1638991206563.png" alt="JordanBaltierra_0-1638991206563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;import arcpy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;arcpy.env.overwriteOutput = True&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mxd = arcpy.mapping.MapDocument(r"\\Balboa\Maps\ModelBuilderScripts\PrePlanMapbookExport\PrePlanMapbook.mxd")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ddp = mxd.dataDrivenPages&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;strOutpath = "\\\Balboa\\Maps\\ModelBuilderScripts\\PrePlanMapbookExport\\IndividualPages\\"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;pageorder = mxd.dataDrivenPages.pageRow.getValue("PRE_PLAN_NUM")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pageindex = mxd.dataDrivenPages.pageRow.getValue("ADDRESS")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pdfname = pageorder+ "_" + pageindex + ".pdf"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ddp.exportToPDF(strOutpath + pdfname, 'ALL', multiple_files="PDF_MULTIPLE_FILES_PAGE_NAME")&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 08 Dec 2021 19:24:13 GMT</pubDate>
    <dc:creator>JordanBaltierra</dc:creator>
    <dc:date>2021-12-08T19:24:13Z</dc:date>
    <item>
      <title>Data Driven pages PDF (pageRow) Question</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-pdf-pagerow-question/m-p/1123979#M8429</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Trying to export some data driven pages with dynamic names on multipage PDFs. The script works but exports only the first maps pageRow for each PDF ("ADRESS" = 1000 BISON AVE). Am I misunderstanding how pageRow works? I figured it would be dynamic for each indexed feature. Image of exported PDFs below as well as the script I am using. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanBaltierra_0-1638991206563.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29154i620788896A9A6DDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JordanBaltierra_0-1638991206563.png" alt="JordanBaltierra_0-1638991206563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;import arcpy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;arcpy.env.overwriteOutput = True&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mxd = arcpy.mapping.MapDocument(r"\\Balboa\Maps\ModelBuilderScripts\PrePlanMapbookExport\PrePlanMapbook.mxd")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ddp = mxd.dataDrivenPages&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;strOutpath = "\\\Balboa\\Maps\\ModelBuilderScripts\\PrePlanMapbookExport\\IndividualPages\\"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;pageorder = mxd.dataDrivenPages.pageRow.getValue("PRE_PLAN_NUM")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pageindex = mxd.dataDrivenPages.pageRow.getValue("ADDRESS")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pdfname = pageorder+ "_" + pageindex + ".pdf"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ddp.exportToPDF(strOutpath + pdfname, 'ALL', multiple_files="PDF_MULTIPLE_FILES_PAGE_NAME")&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-pages-pdf-pagerow-question/m-p/1123979#M8429</guid>
      <dc:creator>JordanBaltierra</dc:creator>
      <dc:date>2021-12-08T19:24:13Z</dc:date>
    </item>
  </channel>
</rss>

