AnsweredAssumed Answered

exportToPDF producing wrong colors and symbology

Question asked by 107378@trpd on Apr 15, 2020
Latest reply on May 4, 2020 by jbarrette-esristaff

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.


Left is manually exported, Right is exported through arcpy.



prj =
layouts = prj.listLayouts()
for layout in layouts:
    OutputExport = os.path.join(OutputFolder,
    if not layout.mapSeries is None:
        ms = layout.mapSeries
        if ms.enabled:
            pageNumber = ms.pageCount
            ms.exportToPDF(out_pdf=OutputExport, page_range_type='ALL', multiple_files='PDF_SINGLE_FILE', resolution=900,
                          image_quality='BEST', compress_vector_graphics=True, image_compression='ADAPTIVE',
                          embed_fonts=True, layers_attributes="LAYERS_ONLY", georef_info=True,
                          clip_to_elements=False, show_selection_symbology=False,
                          output_as_image=False, embed_color_profile=True)


Let me know if anyone has any ideas.

Jeff Barrette 

Amanda Huber