AnsweredAssumed Answered

Data Driven Pages - to PNG using ArcPy

Question asked by cwheelan on Jan 4, 2017
Latest reply on Jan 22, 2017 by fcbassongis



I am using ArcPy to export data driven pages to PNGs. I need the export to have a higher resolution then the default one when you export your map using ArcPy.

This is the script that I am using 

mxd = arcpy.mapping.MapDocument("CURRENT")
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
pageName = str(mxd.dataDrivenPages.pageRow.New_ID)
arcpy.mapping.ExportToPNG(mxd, r"C:\Users\" + pageName + ".png")
del mxd


I want the resolution to be 200.


Where would I add this into the script?