<?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: exportToPDF producing wrong colors and symbology in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257487#M19808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brett!&amp;nbsp; I can reproduce with a rectangle element.&amp;nbsp; I had tried picture (I thought your title element was a picture).&amp;nbsp; For me it doesn't matter if CM is enabled or not or even color model.&amp;nbsp; I always get the outline.&amp;nbsp; We will look into this for 2.6.&amp;nbsp; Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2020 21:48:54 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2020-05-04T21:48:54Z</dc:date>
    <item>
      <title>exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257482#M19803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using both the mapSeries.exportToPDF() and the layout.exportToPDF(), I am getting different colors than if I had exported the layouts manually in ArcGIS Pro. On layout graphics the export is adding borders even though in the project those borders are set to be no color. I've tried adjusting the various parameters in the exportToPDF() tool with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left is manually exported, Right is exported through arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="488739" class="image-1 jive-image" height="218" src="https://community.esri.com/legacyfs/online/488739_pastedImage_1.png" width="345" /&gt;&lt;IMG __jive_id="488740" class="image-2 jive-image" height="224" src="https://community.esri.com/legacyfs/online/488740_pastedImage_2.png" width="356" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;prj = arcpy.mp.ArcGISProject(InputProject)
layouts = prj.listLayouts()
&lt;SPAN style="color: #cc7832;"&gt;for &lt;/SPAN&gt;layout &lt;SPAN style="color: #cc7832;"&gt;in &lt;/SPAN&gt;layouts:
    &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(layout.name)
    OutputExport = os.path.join(OutputFolder&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;layout.name)
    &lt;SPAN style="color: #cc7832;"&gt;if not &lt;/SPAN&gt;layout.mapSeries &lt;SPAN style="color: #cc7832;"&gt;is None&lt;/SPAN&gt;:
        ms = layout.mapSeries
        &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;ms.enabled:
            pageNumber = ms.pageCount
            &lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(pageNumber)
            ms.exportToPDF(&lt;SPAN style="color: #aa4926;"&gt;out_pdf&lt;/SPAN&gt;=OutputExport&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;page_range_type&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'ALL'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;multiple_files&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'PDF_SINGLE_FILE'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;resolution&lt;/SPAN&gt;=&lt;SPAN style="color: #6897bb;"&gt;900&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                          &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;image_quality&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'BEST'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;compress_vector_graphics&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;True, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;image_compression&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'ADAPTIVE'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                          &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;embed_fonts&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;True, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;layers_attributes&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"LAYERS_ONLY"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;georef_info&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;True,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                          &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;clip_to_elements&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;False, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;show_selection_symbology&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;False,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                          &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;output_as_image&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;False, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;embed_color_profile&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if anyone has any ideas.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3200" target="_blank"&gt;Jeff Barrette&lt;/A&gt;&amp;nbsp;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/304653" target="_blank"&gt;Amanda Huber&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257482#M19803</guid>
      <dc:creator>BrettFrahm</dc:creator>
      <dc:date>2021-12-11T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257483#M19804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett!&amp;nbsp; Would it be possible for you to send me a small&amp;nbsp;PPKX?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257483#M19804</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2020-04-20T21:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257484#M19805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out. I had difficulties packaging my project, but I did end up figuring out the issue. The layouts were set to be CMYK in the Color Management settings, so switching them back to RGB fixed my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 20:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257484#M19805</guid>
      <dc:creator>BrettFrahm</dc:creator>
      <dc:date>2020-04-22T20:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257485#M19806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett, its always great when you answer your own question but ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do have a fix going into Pro 2.6 that does address color management in our APIs.&amp;nbsp; Switching to RGB is not always a solution.&lt;/P&gt;&lt;P&gt;Curious, did your outlines go away when you changed to RGB?&amp;nbsp; That doesn't make sense and I can NOT reproduce that scenario.&lt;/P&gt;&lt;P&gt;Also - are you running your scripts stand-alone?&amp;nbsp; Do you see a difference if you perform the same export using CURRENT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 17:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257485#M19806</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2020-04-23T17:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257486#M19807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did a little testing at your request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I was unable to reproduce the original issue where the manual export differed from the Python export when I switched the layout back to CMYK. With the original issue I was running python stand-alone.&lt;/LI&gt;&lt;LI&gt;I'm able to reproduce the outline issue with any CMYK layout if the outline color is set to "no color", but the outline width is 1 pt. Happens with manual export, python stand-alone, and python window in pro using 'current' project.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="228" src="https://community.esri.com/legacyfs/online/490921_pastedImage_1.png" width="532" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a heads up, I will be participating in the 2.6 holistic testing, so you can send some tests my way during that for color management if you would like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 18:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257486#M19807</guid>
      <dc:creator>BrettFrahm</dc:creator>
      <dc:date>2020-05-04T18:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF producing wrong colors and symbology</title>
      <link>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257487#M19808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brett!&amp;nbsp; I can reproduce with a rectangle element.&amp;nbsp; I had tried picture (I thought your title element was a picture).&amp;nbsp; For me it doesn't matter if CM is enabled or not or even color model.&amp;nbsp; I always get the outline.&amp;nbsp; We will look into this for 2.6.&amp;nbsp; Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 21:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopdf-producing-wrong-colors-and-symbology/m-p/257487#M19808</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2020-05-04T21:48:54Z</dc:date>
    </item>
  </channel>
</rss>

