AnsweredAssumed Answered

Is there a way to ExportToPDF to a single PDF

Question asked by ben_vk on May 1, 2016
Latest reply on May 2, 2016 by FGibson-esristaff

Hi All,

 

I am currently using this code to export my data driven pages to PDF, but the export seems to only export individual pages, I would like a singular output PDF with several pages instead. Does anyone know if this is possible with this tool, or do I need to use an external module to achieve this one??

 

mxd = arcpy.mapping.MapDocument("CURRENT")
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
  mxd.dataDrivenPages.currentPageID = pageNum
  arcpy.mapping.ExportToPDF(mxd, r"C:\temp\MAP_" + str(pageNum) + ".pdf")
del mxd

 

Here is the help file for the ExportToPDF tool

 

Cheers

Outcomes