Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- import os
- arcpy.env.workspace = r"E:arcGIS_SharedPythonExportCumulative_CA2"
- path = r"E:arcGIS_SharedPythonExportCumulative_CA2"
- ### Create PDF Map Book File
- CApdfPath = os.path.join(path, 'SanBruno_CumulativeHeatMaps.pdf')
- CApdfDoc = arcpy.mp.PDFDocumentCreate(CApdfPath)
- ### List all files in the output folder
- CApdfList = arcpy.ListFiles( "CACumulativeSumWithin3000_SanBruno_*")
- ### Add market title page to the newly created PDF document
- CApdfDoc.appendPages(os.path.join(path, "CATitlePage.pdf"))
- ### Append market specific pages to the PDF
- for CApdf in CApdfList:
- print(CApdf)
- CApdfDoc.appendPages(r"E:arcGIS_SharedPythonExportCumulative_CA2%s"%CApdf)
- print(CApdf)
- CApdfDoc.saveAndClose()
Add Comment
Please, Sign In to add comment