arcgis python pdf合并
2024-08-27 21:19:44
# -*- 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
最新文章
- 开源Unity小插件CheatConsole
- [sourceTree]这是一个无效的源路径
- LIS检验系统,简介及主要特点
- 团队项目——打地鼠游戏(SPEC)系统性能评估测试
- ACE的CDR中的字节对齐问题
- EF异常:WebForm、Console、Winform层不引入EF报错
- vs2012快捷键
- C# 模拟键盘按键操作
- Linux的五个查找命令 [转]
- MyBatis一个常见的错误
- Previous operation has not finished; run 'cleanup' if it was interrupted
- MySQL最常用分组聚合函数
- 在Ubuntu系统安装Sencha CMD
- Redis--Memched--Cache缓存介绍使用
- 熟悉常用的HBase操作
- Spiring系列__03IOC补充
- 斯坦福大学公开课机器学习:advice for applying machine learning | diagnosing bias vs. variance(机器学习:诊断偏差和方差问题)
- eclipse中一些常见svn图标的含义
- linux中时间命令详解
- Centos7 yum安装Chrome浏览器
热门文章
- Vue路由参数
- 使用nodejs连接mysql数据库实现增删改查
- weblogic快速安装版的安装和使用
- java入门学习总结_04
- bond模式详解
- Microsoft 中间语言
- MySQL授权(用户权限)
- SQL ISNULL 参数
- Web服务器主动推送技术
- 谷歌,火狐提示来自";http://xxx.com/file";的资源已被阻止,因为 MIME 类型(";text/plain";)不匹配(X-Content-Type-Options: nosniff),如何解决?