<?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 does not export image (TIF) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730074#M56624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So this is just an image, not a geotiff basemap or anything? How big is it? If it is exporting with default values, memory or something must be an issue. I would try restarting your computer so memory is fresh, then add each parameter you want to customize one at a time to see where it hits the wall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also try setting smaller metafile/raster buffer size in advanced arcmap setting utility, to see if that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 19:41:22 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2011-09-14T19:41:22Z</dc:date>
    <item>
      <title>ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730069#M56619</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;I'm having troubles with exporting the map document with tif image to PDF using the python script. The dataframe with map gets exported, but the image is dropped during the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine with small resolution parameter, but in my case I need to produce 660dpi and without any compression. It also works if I run the Export Map from the ArcMap, but not if I run the script from Arc or GPTask. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The system I'm running on is Win 2003, 4Gb RAM, 2 CPUs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToPDF(mapDoc, str(output_path), resolution=660,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorspace='CMYK', image_compression='NONE',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers_attributes='NONE',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; georef_info='false')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, help as I need this urgently....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tatiana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730069#M56619</guid>
      <dc:creator>TatianaTen</dc:creator>
      <dc:date>2011-09-14T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730070#M56620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is the TIFF image added to your map document?&amp;nbsp; Is it added using the 'Add Data' button, or is it added using 'Insert &amp;gt; Picture'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried converting the TIFF to a different format (i.e. JPEG) and see if it that works?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730070#M56620</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2011-09-14T15:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730071#M56621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried exporting the PDF with default settings?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToPDF(mxd, str(output_path))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 16:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730071#M56621</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-09-14T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730072#M56622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How is the TIFF image added to your map document?&amp;nbsp; Is it added using the 'Add Data' button, or is it added using 'Insert &amp;gt; Picture'?&lt;BR /&gt;&lt;BR /&gt;Have you tried converting the TIFF to a different format (i.e. JPEG) and see if it that works?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tif image is added using 'Insert &amp;gt; Picture'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using TIFF format, cos it's one of the requirement of my project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730072#M56622</guid>
      <dc:creator>TatianaTen</dc:creator>
      <dc:date>2011-09-14T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730073#M56623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried exporting the PDF with default settings?&lt;BR /&gt;i.e.&lt;BR /&gt;arcpy.mapping.ExportToPDF(mxd, str(output_path))&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, i have. Works fine with defaults, cos they have lower values, i.e. resolution of 300 and image_compression is ADAPTIVE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730073#M56623</guid>
      <dc:creator>TatianaTen</dc:creator>
      <dc:date>2011-09-14T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730074#M56624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So this is just an image, not a geotiff basemap or anything? How big is it? If it is exporting with default values, memory or something must be an issue. I would try restarting your computer so memory is fresh, then add each parameter you want to customize one at a time to see where it hits the wall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also try setting smaller metafile/raster buffer size in advanced arcmap setting utility, to see if that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730074#M56624</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-09-14T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730075#M56625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So this is just an image, not a geotiff basemap or anything? How big is it? If it is exporting with default values, memory or something must be an issue. I would try restarting your computer so memory is fresh, then add each parameter you want to customize one at a time to see where it hits the wall.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, it's not a geotiff basemap, it's an image with legend and the cover for the map. We're using a number of those images with different sizes ranging from 1.5 to 3 Mb. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking about the memory issue, but the Export of the map works from ArcMap, and it exports a big file of 1Gb (but it works and I'm able to open it).&amp;nbsp; Unless there are two different export engines used in ArcMap and arcpy. I don't know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;You can also try setting smaller metafile/raster buffer size in advanced arcmap setting utility, to see if that helps.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure where to find it, but will definitely try it. I'm gonna try everything that might help! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730075#M56625</guid>
      <dc:creator>TatianaTen</dc:creator>
      <dc:date>2011-09-15T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730076#M56626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Advanced Settings utility is located in your install\Utilities directory, depending on what OS you are using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. on Windows 7 machine, ArcGIS 10.0 default install, it would be in C:\Program Files (x86)\ArcGIS\Desktop10.0\Utilities&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As to ArcMap and arcpy module operating differently, I have had issues in the past with exporting a PDF out of ArcMap working fine, and exporting a PDF using arcpy using the same parameters failing. I don't know if it is a memory management difference between the two, or ghosts in my machine, it just doesn't seem to be consistent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730076#M56626</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-09-19T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730077#M56627</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;SPAN&gt;Did you ever get it solved? I am having the same problem with my script in ArcGIS 9.3.1. My script to export the mxd to PNG exports everything else on the map doc except a tiff logo. As you mentioned on the first post, ArcMap does export the logo fine when the export is done through ArcMap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My script is as follows (some relevant code):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pExporter = New ExportPNG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; With pExporter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PixelBounds = pPixelEnv&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Resolution = lngOutputResolution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ExportFileName = sFullPathName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End With&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' device coordinates origin is upper left, ypositive is down&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; With tExpRect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Left = pExporter.PixelBounds.LowerLeft.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bottom = pExporter.PixelBounds.UpperRight.y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Right = pExporter.PixelBounds.UpperRight.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Top = pExporter.PixelBounds.LowerLeft.y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End With&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' export the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; hdc = pExporter.StartExporting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pAV = pPageLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pAV.Output hdc, lngOutputResolution, tExpRect, Nothing, Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DoEvents&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pExporter.FinishExporting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if I am missing any required parameters. Please help since I am really lost in this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 18:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730077#M56627</guid>
      <dc:creator>suharthachowdhury</dc:creator>
      <dc:date>2011-09-23T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy ExportToPDF does not export image (TIF)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730078#M56628</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;Thanks for all your replies....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem was solved, by changing the environment and increasing the memory. Originally, I was running on Win 2003, 4Gb RAM, 2 CPUs. Now changed for Win 2008, 6Gb RAM, 2 CPUs and 2 drives (1 for the OS and another for the Data), and I have noticed that if the hard disc with OS space is below 3Gb the image doesn't get exported. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to install the Adobe Reader on my second drive (not OS drive), so I try to keep my c drive as free as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried mzcoyle's suggestion to use the Advanced Settings, it didn't solve the issue, but it might help in the performance. Thanks mzcoyle for this suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;suhartha, your script is in VBA, am I right? Have you tried to export with smaller parameters, i.e. Lower resolution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 14:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exporttopdf-does-not-export-image-tif/m-p/730078#M56628</guid>
      <dc:creator>TatianaTen</dc:creator>
      <dc:date>2011-09-26T14:21:07Z</dc:date>
    </item>
  </channel>
</rss>

