Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Export PDF Bookmarks to PDF Pages (single PDF)

$
0
0
I have this script

Code:

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
Code:

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

Viewing all articles
Browse latest Browse all 2485

Trending Articles