<?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: Exporting Data Driven Pages when Page Name has a new line feature within it. in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591530#M6467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;So are you saying in on one record in the attribute table there is actually 2 records? As in a carriage return after every 2nd name? Or just in the name field?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If so, I'd export table to excel, sort out the carriage returns and import back to catalog as a feature.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, In some records there is multiple landowners and there is a carriage return after each landowner eq&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben Smith&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Margaret Black&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the way our Property Database creates the records and I was trying to avoid exporting them out and back in again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 05:34:14 GMT</pubDate>
    <dc:creator>KerissaReedy</dc:creator>
    <dc:date>2013-03-13T05:34:14Z</dc:date>
    <item>
      <title>Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591527#M6464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have over 400 landholder maps to export, I am wanting to export then as Multiple PDF Files (page name) however the attribute / page name is in the format as follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Smith, Ben&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Smith, Jenny&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DDP will just skip any pages that have a newline character in the Page Name. I can export it by Multiple PDF Files (page index) but i would then only have to rename all the PDFs to the owner names. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have a workaround or solution to this problem???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 00:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591527#M6464</guid>
      <dc:creator>KerissaReedy</dc:creator>
      <dc:date>2013-03-07T00:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591528#M6465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So are you saying in on one record in the attribute table there is actually 2 records? As in a carriage return after every 2nd name? Or just in the name field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, I'd export table to excel, sort out the carriage returns and import back to catalog as a feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591528#M6465</guid>
      <dc:creator>KamrulKashem</dc:creator>
      <dc:date>2013-03-08T10:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591529#M6466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also simplify your page names into a different column. So, your page name would be "Smith" (if that's all the Smiths), or "Smith1", or whatever. Then, display the text for "Smith, Ben Smith, Jerry" in a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s900000013000000"&gt;dynamic text&lt;/A&gt;&lt;SPAN&gt; box.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591529#M6466</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2013-03-08T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591530#M6467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;So are you saying in on one record in the attribute table there is actually 2 records? As in a carriage return after every 2nd name? Or just in the name field?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If so, I'd export table to excel, sort out the carriage returns and import back to catalog as a feature.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, In some records there is multiple landowners and there is a carriage return after each landowner eq&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben Smith&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Margaret Black&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the way our Property Database creates the records and I was trying to avoid exporting them out and back in again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 05:34:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591530#M6467</guid>
      <dc:creator>KerissaReedy</dc:creator>
      <dc:date>2013-03-13T05:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591531#M6468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can also simplify your page names into a different column. So, your page name would be "Smith" (if that's all the Smiths), or "Smith1", or whatever. Then, display the text for "Smith, Ben Smith, Jerry" in a &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s900000013000000"&gt;dynamic text&lt;/A&gt; box.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankyou for your reply. In order to simplify the page names wouldnt DDP require this to be a separate field? or is there a way to pull out the 'Smith' out of the existing Landowners field using a dynamic text box?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 05:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591531#M6468</guid>
      <dc:creator>KerissaReedy</dc:creator>
      <dc:date>2013-03-13T05:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591532#M6469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it might be much safer to use another field to manage the DDP sequencing and insert your owner name information as dynamic text.&amp;nbsp; If you really want to get fancy with parsing and formatting the strings depending on lengths and number of new lines, then that could be accomplished with arcpy.mapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 13:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591532#M6469</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-03-13T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages when Page Name has a new line feature within it.</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591533#M6470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have options, and from simple to complex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a new field within in your index that has the name exactly as you want it to be, use a vb/python field calculation to populate this new field. You'd probably have to pull in the field with the new line characters, split on that, then split on the comma and rearrange it to how you want it to be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Export them with the page number, and then run a renaming script of some sort. I default to python, but you could probably come up with something in another language if you wanted to. You could export the table to an excel file and do your renaming in that.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is code that I used to rename all of my pdfs, basically when I export (I use terrago geopdf more&amp;nbsp; than the default arcmap pdf) I end up with a single character at the beginning of my name. E.g. if my export name was 'foo', it will export it as '_foo.pdf', and I want to add '_geo' to the end. So the below script takes off the first charcater '_' and adds '_geo' to the end. It runs really quick. You could easily write out a csv file, read that in as a dictionary and then do the renaming. I save the code below as 'rename.py' and just put in the same directory as the pdfs that I'm renaming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os, inspect

scriptName = inspect.getfile( inspect.currentframe() )
scriptFolder =&amp;nbsp; os.path.split(scriptName)[0]

for dirpath, dirnames, filenames in os.walk(scriptFolder):&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if filename.endswith(".pdf") and not filename.endswith("_geo.pdf"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldfilename = os.path.join(dirpath, filename)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newfilename = os.path.join(dirpath, os.path.splitext(filename)[0][1:] + "_geo.pdf")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "old: " + oldfilename
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\tnew: " + newfilename
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os.rename(oldfilename, newfilename)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Write a python script to export a page at a time (through a loop of course), where you take the field that has the names in it and parse it out to how you want it to be. So this would avoid creating another field, but require a little more complexity in terms of writing the export code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;George&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-when-page-name-has-a/m-p/591533#M6470</guid>
      <dc:creator>GeorgeNewbury</dc:creator>
      <dc:date>2021-12-12T01:24:31Z</dc:date>
    </item>
  </channel>
</rss>

