代码插件测试
2013-05-09 11:36
267 查看
# Author: ESRI # Date: July 5, 2010 # Version: ArcGIS 10.0 # Purpose: This script will append multiple PDFs into a single output PDF file. # The script is intended to run within a script tool. There are two # parameters: # 1) Select PDF Files to Append, # 2) Output PDF. # #Notes: The order of the PDFs is based on how they are entered. The PDF at the # top of the list is first followed by those below it. import arcpy, os, string #Read input parameters from script tool PDFList = string.split(arcpy.GetParameterAsText(0), ";") outPDFpath = arcpy.GetParameterAsText(1) #Create a new PDF object to store the results outputPDF = arcpy.mapping.PDFDocumentCreate(outPDFpath) #Loop through and append each PDF in the list for eachPDF in PDFList: outputPDF.appendPages(str(eachPDF)) #Save the changes and open the result automatically outputPDF.saveAndClose() os.startfile(outPDFpath) #Remove variable reference to file del outputPDF
相关文章推荐
- jqGrid jQuery 表格插件测试代码
- Maven配置插件跳过测试代码的编译和运行
- firfox控制host文件插件,利用域名劫持测试本地测试线上网页代码
- Java 代码测试覆盖率的Eclipse插件
- 代码插件测试
- 免插件在WordPress文章中插入音乐(简单代码测试)
- 如何在eclipse中使用pydev插件导入和测试已有代码
- 测试wlm代码高亮插件
- 代码插件测试
- Java 代码测试覆盖率的Eclipse插件: eclemma
- 代码插件测试
- Java 代码测试覆盖率的Eclipse插件
- 代码高亮插件测试
- [无用]代码插件测试
- iOS8新特性Extension之Today插件的代码测试
- 测试代码着色插件
- 测试代码插入插件
- 测试代码插件
- 用Emma的Eclipse插件进行代码覆盖率测试
- 测试代码插件