Bug
| Bug ID Number | BUG-000161069 |
|---|---|
| Submitted | August 30, 2023 |
| Last Modified | November 5, 2024 |
| Applies to | ArcGIS Pro |
| Version found | 3.1.3 |
| Operating System | Windows OS |
| Operating System Version | 11.0 64 bit |
| Version Fixed | 3.4 |
| Status | Fixed |
Exporting directly from an open layout or map using ArcPy reflects the current symbolization. The script below can be used to do so for layouts. For example:
##Export to PDF import time aprx = arcpy.mp.ArcGISProject("CURRENT") aprx.listLayouts() for lyt in aprx.listLayouts(): #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" start = time.time() lyt.exportToPDF(f"C:\Temp\{lyt.name}.pdf", 150, "BEST", True, "ADAPTIVE", True, "LAYERS_ONLY", True, 80, False, False, False) end = time.time() print(f"{lyt.name} exported in {end - start} seconds") print("Done").
Bug ID: BUG-000161069
Software:
Get help from ArcGIS experts
Download the Esri Support App