漏洞
漏洞 ID 编号 | BUG-000173108 |
---|---|
已提交 | December 17, 2024 |
上次修改时间 | September 8, 2025 |
适用范围 | ArcGIS Pro |
找到的版本 | 3.4 |
操作系统 | Windows OS |
操作系统版本 | 11.0 64 bit |
修正版本 | 3.5 |
状态 | Fixed |
Delete the empty map frames from all the layouts in the project (any map frame with the map property set to None), you must be able to export successfully. Or, export the layout using ArcPy.MP, which does generate a successful export.
An example code: ##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")
漏洞 ID: BUG-000173108
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序