<?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: export mxd to PDF and JPEG files in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320729#M24916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mxd = arcpy.mapping.MapDocument("C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Projects/Orange/ORA_ComDist_01.mxd")
arcpy.mapping.ExportToJPEG(mxd, "C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Maps/Orange/JPEG/ORA_ComDist_01.jpg")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:13:48 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2021-12-11T15:13:48Z</dc:date>
    <item>
      <title>export mxd to PDF and JPEG files</title>
      <link>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320728#M24915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all. Im trying to export batches of MXDs to PDF and JPEG format in 1 script. Rather than exporting 31 maps individually, the idea is to just run a script that will export all of them for me. I am in the testing phase, and I cannot seem to get anything working. Here is what I have so far. Any help would be greatly appreciated. Thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy.mapping

arcpy.mapping.ExportToJPEG("C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Projects/Orange/ORA_ComDist_01.mxd", "C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Maps/Orange/JPEG/ORA_ComDist_01.jpg")
arcpy.mapping.ExportToPDF ("C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Projects/Orange/ORA_ComDist_01.mxd", "C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Maps/Orange/PDF/ORA_ComDist_01.pdf")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 16:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320728#M24915</guid>
      <dc:creator>RafiqBasaria</dc:creator>
      <dc:date>2011-04-25T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: export mxd to PDF and JPEG files</title>
      <link>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320729#M24916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mxd = arcpy.mapping.MapDocument("C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Projects/Orange/ORA_ComDist_01.mxd")
arcpy.mapping.ExportToJPEG(mxd, "C:/Rafiq_GIS/PYTHONTESTING/2011/2011_CountyComm/Maps/Orange/JPEG/ORA_ComDist_01.jpg")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320729#M24916</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2021-12-11T15:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: export mxd to PDF and JPEG files</title>
      <link>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320730#M24917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems to work perfectly. Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 18:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320730#M24917</guid>
      <dc:creator>RafiqBasaria</dc:creator>
      <dc:date>2011-04-25T18:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: export mxd to PDF and JPEG files</title>
      <link>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320731#M24918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally, did you find the way to export in two formats and with loop for all mxd's that are in the folder ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-mxd-to-pdf-and-jpeg-files/m-p/320731#M24918</guid>
      <dc:creator>DimitrisPoursanidis</dc:creator>
      <dc:date>2012-08-13T13:28:44Z</dc:date>
    </item>
  </channel>
</rss>

