tags. Here it is again: try: pdfDoc = arcpy.mapping.PDFDocumentCreate(r"C:\Temp\final.pdf") for mxds in mxdList: mapDoc = arcpy.mapping.MapDocument(mxds) print "Accessed " + mxds tempFile = r"C:\Temp\temp.pdf" arcpy.mapping.ExportToPDF(mapDoc, tempFile) print "Exported to temp PDF" del mapDoc pdfDoc.appendPages(tempFile) pdfDoc.saveAndClose() except: print "Did not create pdf"
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.