Drivium

Export PDF Bookmarks to PDF Pages (single PDF)

Discussion created by Drivium on Feb 26, 2014
Latest reply on Feb 27, 2014 by Drivium
I have this script

import arcpy
mxd = arcpy.mapping.MapDocument("I:\GIS_Workspace\MAP\Test.mxd")
mainDF = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
arcpy.RefreshActiveView();arcpy.RefreshTOC()
arcpy.mapping.ExportToPDF (mxd,"I:\GIS_Workspace\PDF\MAP.pdf")]


...which works great if I'm just dumping out a single map without much criteria.  I've been asked to create a PDF document with multiple pages.  Each with a map corresponding to one of the bookmarks within a .mxd file.  I understand
arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
was added in ArcGIS 10.1.  I'm thinking that may hold some promise...  I've not found too much info on this in my searches...  There are more layers than just the ones needed in this .mxd, so I'd need to be able to specify which layers should apply to each bookmark (they'd all be the same for each, so hard coding would work too). 

TIA

Outcomes