<?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 Parameter Values Missing in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438244#M4787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I am using ExportToPDF in a Python script. With none of the optional parameters set, the export works great. Now I want to define some parameters to tweak the PDF file size and such.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I am finding that some of the values for the 'image_compression' parameter are not available; namely JPEG and ADAPTIVE. These parameter values are not available in the Python Window in ArcGIS, and if defined in a Python script, throw errors when the script is run.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I have attached a screenshot showing the available values for the 'image_compression' parameter in the Python Window in ArcGIS. Also, note in the attached screenshot that the 'jpeg_compression_quality' parameter is not even an option.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Can anybody shed light on why these parameters are in the&amp;nbsp;&amp;nbsp; &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000027000000.htm" rel="nofollow"&gt;documentation&lt;/A&gt; but are not accessible from the Python Window or when running a Python script?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks in advance,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Brad&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's safer to use &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;None&lt;/SPAN&gt;&lt;SPAN&gt; than an empty string to specify unset parameters. It's even better to skip straight to them with named arguments e.g. &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;arcpy.mapping.ExportToPDF(mxd, "c:\\text\\out.pdf", resolution=300, image_compression="LZW")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;jpeg_compression_quality&lt;/SPAN&gt;&lt;SPAN&gt; is available until 10.0 SP1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 17:11:07 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2010-10-14T17:11:07Z</dc:date>
    <item>
      <title>ArcPy ExportToPDF Parameter Values Missing</title>
      <link>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438243#M4786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: farsterbj&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ExportToPDF in a Python script.&amp;nbsp; With none of the optional parameters set, the export works great.&amp;nbsp; Now I want to define some parameters to tweak the PDF file size and such.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am finding that some of the values for the 'image_compression' parameter are not available; namely JPEG and ADAPTIVE.&amp;nbsp; These parameter values are not available in the Python Window in ArcGIS, and if defined in a Python script, throw errors when the script is run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a screenshot showing the available values for the 'image_compression' parameter in the Python Window in ArcGIS.&amp;nbsp; Also, note in the attached screenshot that the 'jpeg_compression_quality' parameter is not even an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody shed light on why these parameters are in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000027000000.htm"&gt;documentation&lt;/A&gt;&lt;SPAN&gt; but are not accessible from the Python Window or when running a Python script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 15:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438243#M4786</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-14T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF Parameter Values Missing</title>
      <link>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438244#M4787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I am using ExportToPDF in a Python script. With none of the optional parameters set, the export works great. Now I want to define some parameters to tweak the PDF file size and such.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I am finding that some of the values for the 'image_compression' parameter are not available; namely JPEG and ADAPTIVE. These parameter values are not available in the Python Window in ArcGIS, and if defined in a Python script, throw errors when the script is run.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I have attached a screenshot showing the available values for the 'image_compression' parameter in the Python Window in ArcGIS. Also, note in the attached screenshot that the 'jpeg_compression_quality' parameter is not even an option.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Can anybody shed light on why these parameters are in the&amp;nbsp;&amp;nbsp; &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000027000000.htm" rel="nofollow"&gt;documentation&lt;/A&gt; but are not accessible from the Python Window or when running a Python script?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks in advance,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Brad&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's safer to use &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;None&lt;/SPAN&gt;&lt;SPAN&gt; than an empty string to specify unset parameters. It's even better to skip straight to them with named arguments e.g. &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;arcpy.mapping.ExportToPDF(mxd, "c:\\text\\out.pdf", resolution=300, image_compression="LZW")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;jpeg_compression_quality&lt;/SPAN&gt;&lt;SPAN&gt; is available until 10.0 SP1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438244#M4787</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-10-14T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF Parameter Values Missing</title>
      <link>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438245#M4788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jbarrette&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your post.&amp;nbsp; These options were addressed for SP1.&amp;nbsp; I think the SP1 help modifications got posted to the web help sooner than it should have.&amp;nbsp; SP1 is due out soon.&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, 15 Oct 2010 14:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/arcpy-exporttopdf-parameter-values-missing/m-p/438245#M4788</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-15T14:38:32Z</dc:date>
    </item>
  </channel>
</rss>

