合并文档 - 文档组装 Make
合并文档 是一个 Make 模块 PDF4me 它可以将多个 Word (.docx) 文件合并成一个文档。您可以使用它来汇总部门报告、编写提案或合并合同条款,并完全控制合并顺序和格式。
本模块的功能
PDF4me 合并文档 将多个 Word 文档合并成一个文档。 Make 它支持具有高级格式和合规性选项的各种场景,并支持灵活的文档排序。 SortPosition可自定义的格式化模式(KeepSourceFormatting, KeepDifferentStyles, UseDestinationStyles)每个文档,合规级别设置(ECMA(过渡、严格)和时区元数据,用于文档跟踪,非常适合文档组装、报告合并、合同编制和多文档打包工作流程。
相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客 →
我如何验证我的身份 Make 设想?
要访问 PDF4me 网站 API 通过 Make每个请求都必须包含一个有效的 联系 握着你的 PDF4me API 密钥。这实现了您与他人之间安全、经过身份验证的通信。 Make 场景和 PDF4meWord文档合并服务。
您不容错过的重要事实
SortPosition 控制合并顺序,而非数组顺序
文件按升序合并 SortPosition 无论它们在 Documents 数组中的显示顺序如何,都按此顺序排列。最低 SortPosition 成为所有其他文档附加到的基础文档。
三 FormatMode 选项控制样式处理
KeepSourceFormatting 保留每个文档自身的样式(默认)。 KeepDifferentStyles 保持不同风格的并排摆放。 UseDestinationStyles 强制所有文档都使用基础文档的样式表。
合规级别的影响 OOXML 输出
ECMA过渡模式(默认)和严格模式分别映射到不同的 打开 XML (OOXML) 合规标准定义 ECMA-376如果下游系统需要符合 ISO/IEC 29500 Strict 标准的 .docx 输出,请设置 Strict。

使用文件名构建 Documents 数组, DocContent, 和 SortPosition 每份文件。最低 SortPosition 成为基础文档。
合并文档需要哪些参数?
必需的: Documents 数组必须至少包含一个条目,并且每个条目都需要 Filename、DocContent 和 SortPosition。
| 范围 | 必需的 | 它的作用 | 例子 |
|---|---|---|---|
| Documents | Required | Array of document objects to merge. Must contain at least one document. Documents are merged in ascending SortPosition order; the lowest SortPosition becomes the base document. | [{"Filename":"doc1.docx","SortPosition":0}] |
| Documents[].Filename | Required | Original filename of the document, including extension (.docx, .doc). Used for reference and format detection. | document1.docx |
| Documents[].DocContent | Required | Base64-encoded binary content of the document. Map from a previous module. Must be a valid Word format. | [Buffer] |
| Documents[].SortPosition | Required | Position in merge order, ascending. Must be unique within the array. Any numbering scheme works (0,1,2 or 10,20,30). | 0 |
| Documents[].FormatMode | Conditional | Per-document formatting mode: KeepSourceFormatting (default, preserves original), KeepDifferentStyles (keeps styles distinct), or UseDestinationStyles (forces base document styling). | KeepSourceFormatting |
| Merge Options Time Zone | Conditional | Timezone metadata written to the merged document, e.g. UTC, America/New_York, Europe/London. Used for tracking and compliance. | UTC |
| Merge Options Compliance Level | Conditional | OOXML compliance standard: ECMA, Transitional (default), Strict, or Custom. | Transitional |
输出
| 场地 | 类型 | 它包含什么 |
|---|---|---|
Name | String | Output Word filename, taken from the base document (lowest SortPosition). |
Doc Data | Buffer | The merged Word document containing all input documents combined in SortPosition order. |
典型配置
工作流程示例Common Make scenario patterns using Merge Documents.
部门月度报告 → 综合执行报告
- 当所有部门当月的报告都提交完毕后,预定的触发器就会触发。
- 封面页(SortPosition 0)和执行摘要(SortPosition 1) 从模板文件夹中检索。
- 迭代器遍历每个部门的报告,并按升序分配 SortPosition 价值观。
- 合并文档将所有部分合并在一起 FormatMode 设置为 KeepSourceFormatting保留各部门自身的风格。
- 汇总报告将上传至高管报告文件夹,并通过电子邮件发送给领导层。
RFP 各部分 → 单一提案提交
- 当提案的所有部分(求职信、技术方案、定价、团队简介)都被标记为已批准时,触发器就会触发。
- 每个部分都按顺序从其所属团队的文件夹中检索。 SortPosition 价值观。
- FormatMode 设置为 UseDestinationStyles 因此,每个部分都采用求职信的格式,以保持一致的外观。
- 合并文档会将所有部分合并到最终提案文档中。
- 完成的提案将上传到提交文件夹,并送交销售领导层进行最终审核。
合同条款库 → 最终合同汇编
- 当协商的合同条款最终确定并获得批准后,触发器就会启动。
- 标准子句是从子句库中检索的(SortPosition 0),来自谈判文件夹的自定义条款(SortPosition 1),日程安排(SortPosition 2),以及签名页(SortPosition 3)。
- FormatMode 设置为 KeepDifferentStyles 因此,每种子句类型都有其自身的格式变体。
- 合并文档功能会将各个组成部分按照正确的法律顺序组合成一份合同。
- 最终合同将上传至已执行合同文件夹,并送交法务团队审核。
实用技巧
SortPosition values must be unique
Two documents sharing the same SortPosition produces unpredictable ordering. Use gapped numbering (0, 10, 20) so you can insert a new section later without renumbering the whole array.
FormatMode is set per document, not globally
Each entry in the Documents array can use a different FormatMode. Mixing KeepSourceFormatting on most documents with UseDestinationStyles on one is valid if that is the behavior you want.
DocContent must be valid Word binary
Passing a PDF or plain-text buffer into DocContent fails the merge. Confirm the upstream module (OneDrive, SharePoint, Google Drive) is outputting .docx or .doc binary content, not a converted format.
The base document sets the output filename
The Name field in the output always comes from the document with the lowest SortPosition. Rename that document upstream if you need a specific output filename.
Strict compliance can reject legacy .doc content
If Merge Options Compliance Level is set to Strict and a source document uses older .doc-era formatting quirks, some elements may not carry over cleanly. Use Transitional (the default) unless a downstream system specifically requires Strict OOXML.
Large document counts increase processing time
Merging many documents, or documents with heavy embedded media, takes longer than a two-document merge. Test with your actual document set before relying on tight scenario timeouts.
速查表
| 场地 | 价值 |
|---|---|
| Module | Merge Documents |
| Connection | PDF4me API key |
| Documents array | One entry per file: Filename, DocContent, SortPosition |
| FormatMode (preserve each doc) | KeepSourceFormatting |
| FormatMode (single consistent look) | UseDestinationStyles |
| FormatMode (keep styles distinct) | KeepDifferentStyles |
| Compliance Level default | Transitional |
| Output fields | Name, Doc Data |
常见问题解答
行业应用案例及应用
- Legal & Professional
- Corporate & Business
- Human Resources
- Publishing & Documentation
- 合同组装将标准条款与自定义条款合并成完整的合同
- 法律简报汇编:将论点、证据和权威案例合并成最终的辩护状
- 发现文件汇编将权限日志与生产环境中的响应式文档合并
- 案件档案合并将案件备忘录、诉状和信函合并成案件摘要
- 意见书汇编将研究备忘录与意见模板合并到客户信函中。
- 提案汇编将求职信、技术方案、报价和个人简介合并到 RFP 回复中
- 报告组装将执行摘要与部门章节合并成综合报告。
- 商业计划整合将计划各部分(市场、运营、财务)合并成完整的计划。
- 板封装组件将议程、报告和决议整合到董事会会议资料包中。
- 战略计划汇编将愿景、目标和举措整合到全面的战略计划中
- 员工手册汇编将政策章节合并到完整的员工手册中
- 创建入职培训包将欢迎信、表格和政策文件整合到新员工入职资料包中。
- 福利指南汇编将福利计划说明合并成全面的福利指南
- 绩效考核大会将评估表与发展计划合并成审查文件
- 培训手册整合将培训模块合并成完整的培训手册
- 书籍手稿汇编将各章节文档合并成完整的稿件以供出版。
- 技术手册编写将技术章节合并成全面的用户手册
- 课程资料汇编将课程模块合并成完整的课程材料
- 文件整合: 结合 API 将文档、指南和教程整合到统一的文档中
- 报告发布将报告组件合并成可发布的文档
相关操作
拆分文档
相反的操作:将一个 Word 文档拆分成多个文件,以便在合并后重新提取各个部分。
比较文档
在合并两个 Word 文档之前,检查它们之间的差异,这对于核实合同修改或修订变更非常有用。
更新目录
刷新合并文档中的目录,使页码和章节标题反映合并后的内容。
在其他平台上执行相同任务
n8n合并 Word 文档
同一个单词合并节点 n8n 工作流程,将其连接到自托管或云平台 n8n 实例而不是 Make。
Power Automate合并 Word 文档
微软的相同文档组装操作 Power Automate 流动,契合 SharePoint 以及 Teams 文档工作流程。
Zapier合并文档
相同的合并步骤 Zapier将其连接到 Zap 中已有的 Google Drive、Dropbox 或 Gmail 触发器。
PDF4me API合并文档
直接通过以下方式调用相同的合并操作 REST API 用于在无代码平台之外进行自定义集成。