# -*- coding: cp936 -*-

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:
arcpy.AddMessage(u"合并"+str(eachPDF))
outputPDF.appendPages(str(eachPDF)) #Save the changes and open the result automatically
outputPDF.saveAndClose()
os.startfile(outPDFpath) #Remove variable reference to file
del outputPDF

最新文章

  1. 开源Unity小插件CheatConsole
  2. [sourceTree]这是一个无效的源路径
  3. LIS检验系统,简介及主要特点
  4. 团队项目——打地鼠游戏(SPEC)系统性能评估测试
  5. ACE的CDR中的字节对齐问题
  6. EF异常:WebForm、Console、Winform层不引入EF报错
  7. vs2012快捷键
  8. C# 模拟键盘按键操作
  9. Linux的五个查找命令 [转]
  10. MyBatis一个常见的错误
  11. Previous operation has not finished; run 'cleanup' if it was interrupted
  12. MySQL最常用分组聚合函数
  13. 在Ubuntu系统安装Sencha CMD
  14. Redis--Memched--Cache缓存介绍使用
  15. 熟悉常用的HBase操作
  16. Spiring系列__03IOC补充
  17. 斯坦福大学公开课机器学习:advice for applying machine learning | diagnosing bias vs. variance(机器学习:诊断偏差和方差问题)
  18. eclipse中一些常见svn图标的含义
  19. linux中时间命令详解
  20. Centos7 yum安装Chrome浏览器

热门文章

  1. Vue路由参数
  2. 使用nodejs连接mysql数据库实现增删改查
  3. weblogic快速安装版的安装和使用
  4. java入门学习总结_04
  5. bond模式详解
  6. Microsoft 中间语言
  7. MySQL授权(用户权限)
  8. SQL ISNULL 参数
  9. Web服务器主动推送技术
  10. 谷歌,火狐提示来自"http://xxx.com/file"的资源已被阻止,因为 MIME 类型("text/plain")不匹配(X-Content-Type-Options: nosniff),如何解决?