Guest User

Untitled

a guest
Jun 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import arcpy
  2. import os
  3.  
  4. arcpy.env.workspace = r"E:arcGIS_SharedPythonExportCumulative_CA2"
  5. path = r"E:arcGIS_SharedPythonExportCumulative_CA2"
  6.  
  7. ### Create PDF Map Book File
  8. CApdfPath = os.path.join(path, 'SanBruno_CumulativeHeatMaps.pdf')
  9.  
  10. CApdfDoc = arcpy.mp.PDFDocumentCreate(CApdfPath)
  11.  
  12. ### List all files in the output folder
  13. CApdfList = arcpy.ListFiles( "CACumulativeSumWithin3000_SanBruno_*")
  14.  
  15. ### Add market title page to the newly created PDF document
  16. CApdfDoc.appendPages(os.path.join(path, "CATitlePage.pdf"))
  17.  
  18.  
  19. ### Append market specific pages to the PDF
  20. for CApdf in CApdfList:
  21.  
  22. print(CApdf)
  23.  
  24. CApdfDoc.appendPages(r"E:arcGIS_SharedPythonExportCumulative_CA2%s"%CApdf)
  25. print(CApdf)
  26.  
  27.  
  28. CApdfDoc.saveAndClose()
Add Comment
Please, Sign In to add comment