<?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: ARCPY - ExportToPDF Function in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34032#M2650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you on the latest service pack?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2012 23:04:56 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2012-03-12T23:04:56Z</dc:date>
    <item>
      <title>ARCPY - ExportToPDF Function</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34031#M2649</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;I'm trying to export a map book with data driven pages, with multiple data frames. I am using the UI to export. I can't seem to get the JPEG_COMPRESSION_QUALITY string to work in my script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have:&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;ddp = mxd.dataDrivenPages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ddp.exportToPDF(r"C:\Desktop\test.pdf", resolution = 150, jpeg_compression_quality = 75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.TypeError'&amp;gt;: exportToPDF() got an unexpected keyword argument 'jpeg_compression_quality&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- E. Ng&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 22:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34031#M2649</guid>
      <dc:creator>Ericng</dc:creator>
      <dc:date>2012-03-12T22:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: ARCPY - ExportToPDF Function</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34032#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you on the latest service pack?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 23:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34032#M2650</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-03-12T23:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: ARCPY - ExportToPDF Function</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34033#M2651</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;Updating to the latest service pack fixed it. Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- E. Ng&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 14:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-function/m-p/34033#M2651</guid>
      <dc:creator>Ericng</dc:creator>
      <dc:date>2012-03-13T14:53:19Z</dc:date>
    </item>
  </channel>
</rss>

