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 = arcpy.mp.ArcGISProject(InputProject)
layouts = prj.listLayouts()
for layout in layouts:
print(layout.name)
OutputExport = os.path.join(OutputFolder, layout.name)
if not layout.mapSeries is None:
ms = layout.mapSeries
if ms.enabled:
pageNumber = ms.pageCount
print(pageNumber)
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