Bug
Bug ID Number | BUG-000173232 |
---|---|
Submitted | December 20, 2024 |
Last Modified | September 4, 2025 |
Applies to | ArcGIS Pro |
Version found | 3.4 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Version Fixed | 3.5 |
Status | Fixed |
"##Export to PDF aprx = arcpy.mp.ArcGISProject("CURRENT") aprx.listLayouts() for lyt in aprx.listLayouts(): #**** ENTER THE LAYOUT NAME YOU WANT TO EXPORT INTO THE BRACKETS i.e. for lyt in aprx.listLayouts("Layout Name"): #Parameters: output name, resolution, image quality, compress vector graphics, image compression, embed fonts, layer attributes, georeference, jpeg compression, clip to elements, output as image, embed color profile #Image quality: "BEST", "BETTER", "NORMAL", "FASTER", "FASTEST" #Image compression: "ADAPTIVE", "DEFLATE", "JPEG", "LZW", "NONE", "RLE" #Layer attributes: "LAYERS_ONLY", "LAYERS_AND_ATTRIBUTES", "NONE" lyt.exportToPDF(f"C:\Temp\{lyt.name}.pdf", 150, "NORMAL", True, "ADAPTIVE", True, "LAYERS_ONLY", True, 80, False, False, False) print("Done")"
Bug ID: BUG-000173232
Software:
Get help from ArcGIS experts
Download the Esri Support App