Contents
How to automatically export layouts to PNG using ArcPy?
I am using data driven pages and want to automatically export my layouts/extents to PNG. Since you have to use arcpy to export to PNG with data driven pages, I used following code, as explained here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sm00000008000000
Do you need ArcGIS to export data driven pages?
Once you’ve created a map with Data Driven Pages, you may want to export the pages to share with others. You could iterate through each page and create separate files in any export format supported by ArcGIS. However, a more common use case is to include all, or selected, pages in a single file.
How do I export a data driven page?
Verify that Data Driven Pages are enabled and that ArcMap is in layout view. Click File > Export Map from the main menu. Navigate to where you want to save the export file. Click the Save as type arrow and click PDF. Type a file name for the export file.
How do I save data driven pages in PDF?
Verify that Data Driven Pages are enabled and that ArcMap is in layout view. Click File > Export Map from the main menu. Navigate to where you want to save the export file. Click the Save as type arrow and click PDF. Type a file name for the export file. Click the Pages tab. Choose what pages you want to export.
How to create a data driven page in ArcPy?
Data Driven Pages must first be enabled and authored within a map document ( .mxd) using the Data Driven Pages toolbar in ArcMap before it can be referenced with arcpy.mapping. The DataDrivenPages class only has a single exportToPDF method but that does not mean other export files can’t be created.
What does the string mean in ArcGIS export map?
A string that represents the path and file name for the output export file. The string value that designates how the pages will be printed, similar to the Pages tab within the ArcMap Export Map dialog box for PDF documents. ALL —All pages are exported. CURRENT —The active page is exported.