# - * - 코딩 : cp936 - * - 수입 arcpy, 운영 체제, 문자열 #이 스크립트 도구에서 읽기 입력 매개 변수 mxdList = 사항 String.split (arcpy.GetParameterAsText (0) " ; " ) outPDFpath = arcpy.GetParameterAsText (1 ) #을 만들기 결과를 저장할 새 PDF 객체 outputPDF = arcpy.mapping.PDFDocumentCreate (outPDFpath) #의 목록의 각 MXD을 통해 루프, 수출, 임시 PDF 이름을 만들 #을 마지막에 추가, 출력 PDF 에 대한 mxdPath 에서 mxdList : MXD = arcpy.mapping.MapDocument (mxdPath) PDFPath = mxdPath [- 4] + " _gisoracle.pdf " arcpy.mapping.ExportToPDF (MXD, PDFPath) outputPDF.appendPages (STR (PDFPath)) os.remove (PDFPath) # 변경 내용을 저장하고 그 결과 자동 열 outputPDF한다. saveAndClose () os.startfile (outPDFpath) # 파일에 변수 참조를 제거 델 outputPDF을