合并 多个pdf文件
Article Update 13-March-2020: I removed the source code. The article that remains should act as a "design roadmap" for members who want to write the code in the programming language of your choice. If you are interested in discussing the program further, please contact me via the EE message system. 文章更新2020年3月13日:我删除了源代码。 对于希望用您选择的编程语言编写代码的成员,剩下的文章应作为“设计路线图”。 如果您有兴趣进一步讨论该程序,请通过EE消息系统与我联系。 INTRODUCTION 介绍This article presents a solution to a question asked here at Experts Exchange. The situation is that there's a large number of subfolders (400 in the original question), each of which has a number of PDF files (two in the original question). The goal is to combine/merge the PDF files in each subfolder (in ascending date order) into a single PDF file, storing the combined file in each subfolder. The source PDF files in each subfolder may have any file names and the user should be able to specify the file name of the combined file.
本文为Experts Exchange此处提出的问题提供了解决方案。 情况是有很多子文件夹(原始问题中有400个子文件夹),每个子文件夹中都有许多PDF文件(原始问题中有两个)。 目标是将每个子文件夹中的PDF文件合并/合并(按升序排列)成单个PDF文件,并将合并后的文件存储在每个子文件夹中。 每个子文件夹中的源PDF文件可能具有任何文件名,并且用户应该能够指定组合文件的文件名。
REQUIRED SOFTWARE 所需软件The method presented in this article requires AutoHotkey, an excellent (free!) programming/scripting language. The quick explanation for installing AutoHotkey is to visit its website. A more comprehensive explanation is to read my EE article, AutoHotkey - Getting Started. After installation, AutoHotkey will own the AHK file type, supporting the solution discussed in the remainder of this article.
本文介绍的方法需要使用一种出色的(免费!)编程/脚本语言AutoHotkey 。 安装AutoHotkey的快速说明是访问其网站 。 更全面的解释是阅读我的EE文章AutoHotkey-Getting Started 。 安装后,AutoHotkey将拥有AHK文件类型,支持本文其余部分讨论的解决方案。
The program utilizes another excellent (free!) piece of software — PDF Toolkit (PDFtk). It comes in both command line and GUI versions. The command line version is called PDFtk Server. Don't be misled by "Server" in the name. I don't know why they called it that, but it's just an executabl