<?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 to EPS using Python in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190884#M2079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was hoping someone could help me out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works for me, except that the pages don't change - it keeps exporting the same page over and over again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? I would think "mxd.dataDrivenPages.currentPageID = pageNum" would change the page (ie feature driving the page), so each successive "routeNum = mxd.dataDrivenPages.pageRow.routeID" would get the value for routeNum from the new feature driving the datadrivenpages (the next 'page').&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2011 16:44:53 GMT</pubDate>
    <dc:creator>TomGiles</dc:creator>
    <dc:date>2011-04-20T16:44:53Z</dc:date>
    <item>
      <title>Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190875#M2070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently in ArcGIS 10 you can export all of the pages of a data driven pages map book to .pdf format.&amp;nbsp; Unfortunately, you cannot do the same thing when exporting to .eps format or any of the other export formats (not sure why).&amp;nbsp; Is there a way to us python to iterate through the individual pages of a data driven pages map book so that each page can be exported to .eps one by one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190875#M2070</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2010-10-20T21:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190876#M2071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the answer.&amp;nbsp; It can be done and there is a code example in the help files (although the export format in the example is .png):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataDrivenPages/00s300000030000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataDrivenPages/00s300000030000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190876#M2071</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2010-10-20T21:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190877#M2072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My reason for responding to this post is two fold:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1: Is to show the sample code to export to EPS that is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2: Since the upgrade to ArcGIS 10 Service Pack 1, the script now produces negative images.&amp;nbsp; I am still a beginner in the Python scripting world....any tips to how to fix this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Define current mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument ("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables inputed by user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sheetname = sys.argv[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;folder = sys.argv[2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: export EPS data driven pages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; arcpy.AddMessage ("exporting sheet " + str(pageNum))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#add leading zeros&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if pageNum &amp;lt; 10:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_00" + str(pageNum) + ".eps")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; elif pageNum &amp;lt;100:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_0" + str(pageNum) + ".eps")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, str(folder) + "\\" + str(sheetname) + "_" + str(pageNum) + ".eps")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190877#M2072</guid>
      <dc:creator>AngelaRemer</dc:creator>
      <dc:date>2010-11-17T15:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190878#M2073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We too are having trouble with python now producing negative eps images.&amp;nbsp; Have you resolved the issue?&amp;nbsp; It does appear to be a problem with Service Pack 1.&amp;nbsp; This kind of kills us being able to use the new scripting abilities.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 13:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190878#M2073</guid>
      <dc:creator>ShannonPorter</dc:creator>
      <dc:date>2010-12-23T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190879#M2074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a known issue and is being addressed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 12:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190879#M2074</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2010-12-24T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190880#M2075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I too was having the negative image problem at sp1. I discovered a workaround, if you pass a value of 1 for the jpeg_compression_quality parameter, it comes out as a positive image. My suspicion is that ESRI has this parameter mapped incorrectly at sp1 when they ship it to arcobjects. All of the other values I tried for the jpeg_compression_quality parameter resulted in a negative image.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 13:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190880#M2075</guid>
      <dc:creator>PaulBrandt</dc:creator>
      <dc:date>2010-12-27T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190881#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you say pass a value of 1 for the JPEG compression quality parameter what exactly are you referring to?&amp;nbsp; We have not had any success with this yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190881#M2076</guid>
      <dc:creator>KayAnderson</dc:creator>
      <dc:date>2011-04-20T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190882#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Kay:&amp;nbsp; He's referring to the option to set jpeg quality when scripting the export in Python.&amp;nbsp; My colleagues have had success running this one, with no negative image results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, r"C:\Temp\Map_Page" + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True, embed_fonts=False, jpeg_compression_quality=1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I run the ExportToEPS code with the "jpeg_compression_quality=1" option, I get the following error message:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.TypeError'&amp;gt;: ExportToEPS() got an unexpected keyword argument 'jpeg_compression_quality'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My colleagues are running Adobe Acrobat Standard 8 and I am running Adobe Acrobat Standard 9, so that may be where the disparity lies.&amp;nbsp; I modified the script to be built into a tool with output variables, and omitted the "jpeg_compression_quality" option and it works very well for me (no negative images):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import ArcPy site-package and os modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the output workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWorkspace = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the output map name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapname = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Tell ArcMap to use the current MXD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Execute dataDrivenPages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, outWorkspace + str(mapname) + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search on "ExportToEPS" in ArcGIS 10 Help to get the breakdown of the syntax and all output options.&amp;nbsp; You'll notice that the "jpeg_compression_quality" option is not mentioned in there...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190882#M2077</guid>
      <dc:creator>PatrickGronli</dc:creator>
      <dc:date>2011-04-20T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190883#M2078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, we will give this a try.&amp;nbsp; We are using Adobe 9 too so I appreciate you including that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190883#M2078</guid>
      <dc:creator>KayAnderson</dc:creator>
      <dc:date>2011-04-20T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190884#M2079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was hoping someone could help me out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works for me, except that the pages don't change - it keeps exporting the same page over and over again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? I would think "mxd.dataDrivenPages.currentPageID = pageNum" would change the page (ie feature driving the page), so each successive "routeNum = mxd.dataDrivenPages.pageRow.routeID" would get the value for routeNum from the new feature driving the datadrivenpages (the next 'page').&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 16:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190884#M2079</guid>
      <dc:creator>TomGiles</dc:creator>
      <dc:date>2011-04-20T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190885#M2080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this running but wondering if anyone has it running for &lt;/SPAN&gt;&lt;STRONG&gt;selected pages&lt;/STRONG&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;@Kay:&amp;nbsp; He's referring to the option to set jpeg quality when scripting the export in Python.&amp;nbsp; My colleagues have had success running this one, with no negative image results:&lt;BR /&gt;&lt;BR /&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;BR /&gt;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;BR /&gt;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, r"C:\Temp\Map_Page" + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True, embed_fonts=False, jpeg_compression_quality=1)&lt;BR /&gt;del mxd&lt;BR /&gt;&lt;BR /&gt;However, when I run the ExportToEPS code with the "jpeg_compression_quality=1" option, I get the following error message:&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Runtime error &amp;lt;type 'exceptions.TypeError'&amp;gt;: ExportToEPS() got an unexpected keyword argument 'jpeg_compression_quality'&lt;BR /&gt;&lt;BR /&gt;My colleagues are running Adobe Acrobat Standard 8 and I am running Adobe Acrobat Standard 9, so that may be where the disparity lies.&amp;nbsp; I modified the script to be built into a tool with output variables, and omitted the "jpeg_compression_quality" option and it works very well for me (no negative images):&lt;BR /&gt;&lt;BR /&gt;# Import ArcPy site-package and os modules&lt;BR /&gt;#&lt;BR /&gt;import arcpy &lt;BR /&gt;import os&lt;BR /&gt;# Set the output workspace&lt;BR /&gt;#&lt;BR /&gt;outWorkspace = arcpy.GetParameterAsText(0)&lt;BR /&gt;# Set the output map name&lt;BR /&gt;#&lt;BR /&gt;mapname = arcpy.GetParameterAsText(1)&lt;BR /&gt;# Tell ArcMap to use the current MXD&lt;BR /&gt;#&lt;BR /&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;# Execute dataDrivenPages&lt;BR /&gt;#&lt;BR /&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;BR /&gt;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum&lt;BR /&gt;&amp;nbsp; arcpy.mapping.ExportToEPS(mxd, outWorkspace + str(mapname) + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True)&lt;BR /&gt;del mxd&lt;BR /&gt;&lt;BR /&gt;Search on "ExportToEPS" in ArcGIS 10 Help to get the breakdown of the syntax and all output options.&amp;nbsp; You'll notice that the "jpeg_compression_quality" option is not mentioned in there...&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190885#M2080</guid>
      <dc:creator>malcolmgreer</dc:creator>
      <dc:date>2011-11-28T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190886#M2081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At 10.0 you will have to manage the selection yourself.&amp;nbsp; You will need to run a loop on your rows, create a list of pagenames or numbers and step through each DDP page using that list.&amp;nbsp; Similar to the help sample provided in this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1, we added a DDP.selectedPages property that will return a list of index numbers automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 19:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190886#M2081</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-11-29T19:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data Driven Pages to EPS using Python</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190887#M2082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am doing now is just selecting the pages from the attribute table I have and then exporting them as pdfs. Then I use the reduce pdf size utlity in adobe once I have all my maps exported.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess this will work for now...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 19:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-data-driven-pages-to-eps-using-python/m-p/190887#M2082</guid>
      <dc:creator>malcolmgreer</dc:creator>
      <dc:date>2011-12-01T19:23:21Z</dc:date>
    </item>
  </channel>
</rss>

