<?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: Exporting a layout to pdf without point layer symbology and labeling in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1517775#M71238</link>
    <description>&lt;P&gt;not other posts with the same problem and only 2 hits on the support site.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/when-using-arcpymanagementapplysymbologyfromlayer-on-a-bug-000142871" target="_blank"&gt;BUG-000142871 for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;may apply, if your script parameters meet the conditions&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 23:59:58 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-08-09T23:59:58Z</dc:date>
    <item>
      <title>Exporting a layout to pdf without point layer symbology and labeling</title>
      <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1517762#M71235</link>
      <description>&lt;P&gt;I have developed a Python script using Arcpy to query certain values and append them to a layout.&lt;/P&gt;&lt;P&gt;The script includes the application of symbology, labeling, and a definition query. While the script executes correctly, I encounter an issue where the symbology and labeling do not appear in the exported PDF.&lt;/P&gt;&lt;P&gt;However, when I zoom in or out of the layout in ArcGIS Pro, the symbology and labeling are displayed correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;first image&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;shows the map in ArcGIS Pro with the labeling and symbology present.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MohamedHassan17_0-1723243185184.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112079i99681DFD8145FC81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MohamedHassan17_0-1723243185184.png" alt="MohamedHassan17_0-1723243185184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;second image&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;shows the exported PDF where the labeling and symbology are absent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MohamedHassan17_1-1723243185175.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112078i75031D86B5E1A51D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MohamedHassan17_1-1723243185175.png" alt="MohamedHassan17_1-1723243185175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 22:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1517762#M71235</guid>
      <dc:creator>MohamedHassan17</dc:creator>
      <dc:date>2024-08-09T22:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a layout to pdf without point layer symbology and labeling</title>
      <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1517775#M71238</link>
      <description>&lt;P&gt;not other posts with the same problem and only 2 hits on the support site.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/when-using-arcpymanagementapplysymbologyfromlayer-on-a-bug-000142871" target="_blank"&gt;BUG-000142871 for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;may apply, if your script parameters meet the conditions&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 23:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1517775#M71238</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-08-09T23:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a layout to pdf without point layer symbology and labeling</title>
      <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1518428#M71240</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/635452"&gt;@MohamedHassan17&lt;/a&gt;&amp;nbsp;, are you using applySymbologyFromLayer by chance?&amp;nbsp; If so, there are some alternative solutions.&amp;nbsp; If not, we would need a reproducible case.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:22:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1518428#M71240</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-08-12T15:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a layout to pdf without point layer symbology and labeling</title>
      <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1538250#M72828</link>
      <description>&lt;P&gt;No I don't use&amp;nbsp;&lt;SPAN&gt;applySymbologyFromLayer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1538250#M72828</guid>
      <dc:creator>MohamedHassan17</dc:creator>
      <dc:date>2024-09-13T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a layout to pdf without point layer symbology and labeling</title>
      <link>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1538266#M72830</link>
      <description>&lt;P&gt;this is my function&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;export_layout_to_pdf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;layout&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;exists&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;output_folder&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt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N&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"Report exported to &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;pdf_filename&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;exists&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;pdf_filename&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;startfile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;pdf_filename&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;add_error_message&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Failed to export the report."&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mf&lt;/SPAN&gt;&lt;SPAN&gt;.camera.setExtent(&lt;/SPAN&gt;&lt;SPAN&gt;mf&lt;/SPAN&gt;&lt;SPAN&gt;.camera.getExtent()) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;time&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sleep&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;export_layout_to_pdf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;lyt&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddMessage&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"The report exported successfully ^_^"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporting-a-layout-to-pdf-without-point-layer/m-p/1538266#M72830</guid>
      <dc:creator>MohamedHassan17</dc:creator>
      <dc:date>2024-09-13T13:33:16Z</dc:date>
    </item>
  </channel>
</rss>

