<?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 a report to PDF using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546652#M42658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was a few versions ago with no report back.&lt;/P&gt;&lt;P&gt;If you have a test report, either try the tool&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/export-report-to-pdf.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/export-report-to-pdf.htm"&gt;Export Report To PDF (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or through arcpy&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm"&gt;Report—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you could look back in time to see if it was addressed&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm" title="https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm"&gt;Release notes for ArcGIS Pro 2.6—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plus previous versions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2020 22:54:38 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-09-09T22:54:38Z</dc:date>
    <item>
      <title>Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546645#M42651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to export a report to PDF via &lt;STRONG&gt;report.exportToPDF&lt;/STRONG&gt; (as described into help section). The script works fine but the created&amp;nbsp;PDF's size is too big (~50 Mb)&amp;nbsp;because all the pages of the report are rasterized.. Comparing with the file created via UI (ArcGIS Pro -&amp;gt; Report -&amp;gt; Share as PDF) which is about&amp;nbsp;~600 kb..&amp;nbsp;cause this file is in "vector" normal PDF format (except for small pictures with logo).&lt;/P&gt;&lt;P&gt;So, the question: is it possible to export report into PDF via arcpy the same way like from ArcGIS Pro UI?&lt;/P&gt;&lt;P&gt;I'm using latest version of ArcGIS Pro 2.3.2. and default python 3 environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;import arcpy, datetime, os&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# Set parameters for the main report &amp;amp; create PDF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aprx = arcpy.mp.ArcGISProject(r"c:\NGM_GIS\NG_Projects_all\NG_Projects_all.aprx")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;report = aprx.listReports("TenementExtract Report TEST A3")[0]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;outPDF_report = r"c:\NGM_GIS\NG_Projects_all\ReportTEST\NG Tenement Report A3.pdf"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if os.path.exists(outPDF_report): os.remove(outPDF_report)&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;report.exportToPDF(outPDF_report)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;print("PDF report is created!")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already tried to insert different parameters into &lt;STRONG&gt;&lt;EM&gt;report.exportToPDF &lt;/EM&gt;&lt;/STRONG&gt;e.g.&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;compress_vector_graphics=True, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) embed_fonts=True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;image_compression = "NONE" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; font-weight: 300; "&gt;- always receive the same result...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c; font-weight: 300; "&gt;P.S.&amp;nbsp; in contrast &lt;STRONG&gt;exportToPDF&lt;/STRONG&gt; works perfect with Layouts.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 09:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546645#M42651</guid>
      <dc:creator>DmitryKirianov</dc:creator>
      <dc:date>2019-04-16T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546646#M42652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try setting 'embed_fonts' to false?&amp;nbsp; I am wondering if the defaults in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm"&gt;Report—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are the same as used in the UI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 10:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546646#M42652</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-16T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546647#M42653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;yes, i've tried switch "embed_fonts" to false - nothing changed..&lt;/P&gt;&lt;P&gt;While it's not clear why this parameter can influence and also i would like to have final PDF with all the fonts embed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, attached are the 2 printscreens&amp;nbsp;showing the properties for the&amp;nbsp;2 different PDFs. It's obvious that they've been produced&amp;nbsp;by different&amp;nbsp;applications but i can't see any other differences.. and as i mentioned above exportToPDF (python console...) works fine for the layouts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/442160_python.JPG" /&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/442161_UI.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546647#M42653</guid>
      <dc:creator>DmitryKirianov</dc:creator>
      <dc:date>2019-04-16T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546648#M42654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dmitry... one person might know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory Kramer&lt;/A&gt;‌ are the print engines the same in Pro from the UI vs script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546648#M42654</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-16T12:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546649#M42655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forwarding this question to &lt;A href="https://community.esri.com/migrated-users/3299"&gt;Jeremy Wright&lt;/A&gt;‌&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;are the print engines the same in Pro from the UI vs script?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546649#M42655</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2019-04-16T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546650#M42656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me correspond with&amp;nbsp;the product team responsible for the reports functionality and get back to you all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 16:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546650#M42656</guid>
      <dc:creator>JeremyWright</dc:creator>
      <dc:date>2019-04-16T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546651#M42657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3299"&gt;Jeremy Wright&lt;/A&gt; , did you ever get an answer to this?&amp;nbsp; I'm about to recommend that we use the ArcGIS Pro reporting function for one of our projects but this might be a deal breaker since we will be generating a large number of documents. I'd much rather find out now than after we have invested a lot of time on it. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546651#M42657</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2020-09-09T22:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546652#M42658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was a few versions ago with no report back.&lt;/P&gt;&lt;P&gt;If you have a test report, either try the tool&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/export-report-to-pdf.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/export-report-to-pdf.htm"&gt;Export Report To PDF (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or through arcpy&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/report-class.htm"&gt;Report—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you could look back in time to see if it was addressed&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm" title="https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm"&gt;Release notes for ArcGIS Pro 2.6—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plus previous versions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546652#M42658</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-09-09T22:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546653#M42659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi all,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;It seems they have fixed the issue many months ago... i'm sure even in Pro 2.5 (or probably earlier) it worked fine and at the moment i'm using latest Pro 2.6.1 and&amp;nbsp;it's ok.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2020 12:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546653#M42659</guid>
      <dc:creator>DmitryKirianov</dc:creator>
      <dc:date>2020-09-14T12:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export a report to PDF using Python</title>
      <link>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546654#M42660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are correct.&amp;nbsp; I'm not seeing any problem - at least with the PDFs that I'm generating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 15:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-a-report-to-pdf-using-python/m-p/546654#M42660</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2020-09-15T15:03:23Z</dc:date>
    </item>
  </channel>
</rss>

