跳到主要内容

分割 Word 文档 Zapier

拆分文档 是一个 Zapier 采取行动 PDF4me 它将一个 Word 按页码、分节符、标题样式或您自定义的页码范围将文件拆分成多个较小的文档。触发此操作可将章节分发给审阅者、将报告章节发送到相关部门,或从已归档的合同中提取附件。此操作会将每个拆分后的文件作为单独的文件返回,并自动生成文件名。

相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客

我如何验证我的身份 API 要求?

要访问 PDF4me 网站 API 通过 Zapier每个请求都必须包含正确的身份验证凭据。身份验证可确保通信安全,并验证您作为授权用户的身份,从而实现与您的系统之间的无缝集成。 Zapier 工作流程和 PDF4me强大的 Word 文档拆分服务。

PDF4me 文档拆分 Word Zapier 配置 - 文件、文件名 abc.docx、拆分类型 allpages、拆分配置、区域名称 en-US
配置拆分文档操作:映射文件和文件名,选择拆分类型,设置页面范围或标题样式的拆分配置,以及区域名称。
PDF4me 文档拆分 Word Zapier - 拆分类型下拉菜单显示所有页面、数组、页数、章节、标题
“拆分类型”字段接受五个值:allpages、array、numberofpages、section 和 headings。

您不容错过的重要事实

仅需文件即可。
截图证实,“文件”是唯一带有星号的字段。“文件名”、“拆分类型”、“拆分配置”和“区域名称”均为可选字段,“拆分类型”默认为“所有页面”。
array 和 numberofpages 的行为完全相同
两者都按照您在“拆分配置”中设置的页面范围进行拆分,例如“1-3,5,7”。它们是同一页面范围行为的两个可接受值,并非不同的功能。
输出文件会生成GUID文件名。
文档数组中的每个拆分文件都以生成的 GUID 加上 .docx 命名,而不是从其内容或标题文本派生的名称。

配置概览

示例配置来自 Zapier 界面

屏幕截图显示,文件映射来自上一步,文件名为“abc.docx”,拆分类型设置为“allpages”(每页一个文件),拆分配置留空,因为 allpages 不需要配置,区域名称为“en-US”。

文件

从步骤绘制地图

分体式

所有页面

拆分配置

1-3、5、7 或标题 1

文化名称

美国英语

:::提示:使用上一步中的映射文件

使用 + 按钮映射 文件文件名 从之前的 Zap 步骤开始。 Word 文件必须提供完整内容,不能只显示“存在但未显示”。

:::

:::警告 文件:(存在但未显示)

如果您看到“文件:(存在但未显示)”并遇到错误,请选择提供相应选项的选项。 完整文件内容。 看 Zapier & Power Automate 尖端 详情请见下文。

:::

参数

拆分文档操作的完整参数列表。参数名称与以下内容匹配: Zapier 配置 UI

必需 Zapier UI 仅限文件。文件名、拆分类型、拆分配置和区域名称均为可选。如果留空,拆分类型默认为所有页面。

范围必需的它的作用例子
FileRequiredWord document content, mapped from a previous step using full file content.[4. File from Step 4]
File NameConditionalFilename with .docx or .doc extension, used for output naming.abc.docx
Split TypeConditionalHow to divide the document: allpages (one page per file, default), array or numberofpages (custom page ranges), section (at Word section breaks), or headings (at a heading style).allpages
Split ConfigConditionalPage range such as "1-3,4,5-7" when Split Type is array or numberofpages, or a heading style such as "Heading 1" when Split Type is headings. Not needed for allpages or section.1-3,4,5-7
Culture NameConditionalCulture or locale code affecting language and formatting conventions during processing.en-US

拆分类型值

价值行为
allpagesSplits into individual pages, one page per output file. This is the default.
arraySplits based on the page ranges set in Split Config, such as "1-3,4,5-7".
numberofpagesSame page-range behavior as array, a second accepted value for the same split.
sectionSplits at each Word section break, no Split Config value needed.
headingsSplits at each occurrence of the heading style set in Split Config, such as "Heading 1", matched case-insensitively.

输出结果包含哪些字段?

该操作返回一个文档数组,每个拆分后的文件对应一个条目,而不是像大多数其他操作那样返回单个文件 URL。 PDF4me Word 行动。

场地类型它包含什么
documentsArrayOne entry per split file produced by the action.
documents[].NameStringGenerated GUID-based filename for the split document, such as 12345678-1234-1234-1234-123456789abc.docx.
documents[].DocDataFileThe content of that individual split document, map this into the next step per array item.

典型配置

工作流程示例Common Zapier workflow patterns using Split Document.
按部门分发报告章节
  1. 当在云端硬盘中最终确定合并的多节报告时,会触发一个触发器。
  2. 拆分文档时,拆分类型设置为“节”,以按现有方式拆分报表。 Word 分节符。
  3. 循环步骤遍历文档数组,并将每个部分通过电子邮件发送给其部门负责人。
摘录章节供审稿人分发
  1. 稿件被标记为可供审阅,触发 Zap 事件。
  2. 拆分文档时,拆分类型设置为“标题”,拆分配置设置为“标题 1”,每个章节生成一个文件。
  3. 循环步骤会将每一章通过电子邮件发送给指定的学科审阅者。
按页码范围分离合同组成部分
  1. 一份附有附件的已签署合同已准备好提交,这将触发 Zap 程序。
  2. 拆分文档运行时,拆分类型设置为“数组”,拆分配置设置为“1-10,11,12-15”,以分离主合同、封面页和附件。
  3. 每个组件都上传到文档管理系统中的各自文件夹中。

实用技巧

Map full file content, not a reference
If File shows "Exists but not shown", pick the mapping option that provides full file content, or the action can fail to process the document.
Loop through the documents array
The output is an array, not a single file. Add a Looping by Zapier step (or an equivalent iteration step) to handle each split file individually.
array and numberofpages are interchangeable
Both split by the page ranges in Split Config using the same syntax. Pick either value, the behavior is identical.
Heading matching is case-insensitive
Split Config values like "Heading 1" for the headings Split Type match the heading style regardless of case.
Output filenames are GUIDs, not content-based
Rename each split file after the split if you need meaningful filenames, the action names them with a generated GUID plus .docx.

速查表

场地价值
ActionSplit Document
File[mapped from previous step, full content]
File Nameabc.docx
Split Typeallpages
Split Config1-3,5,7 or Heading 1 (when needed)
Culture Nameen-US

常见问题解答

How do I split a Word document into multiple files in Zapier?+
Add the PDF4me Split Document action to a Zap, map File with full file content, set Split Type to allpages, section, headings, array, or numberofpages, and set Split Config if required. See Microsoft Learn's discussion on creating separate Word documents from a larger one for how this is normally done by hand.
What is the difference between array and numberofpages for Split Type?+
They behave the same way. Both split the document into custom page ranges defined by Split Config, such as "1-3,4,5-7". array and numberofpages are simply two accepted values for the same page-range splitting behavior.
How do I split a Word document by heading instead of by page?+
Set Split Type to headings and Split Config to the heading style you want to split on, such as "Heading 1". The action creates a new file at each occurrence of that heading style, matching case-insensitively.
What filenames do the split output files get?+
Each entry in the documents output array gets a generated GUID-based filename with a .docx extension, such as 12345678-1234-1234-1234-123456789abc.docx, rather than a name derived from the content.
Can I split a Word document by section breaks?+
Yes. Set Split Type to section and the action splits the document at each Word section break, without needing a Split Config value, producing one file per section. See this discussion on splitting a large document into multiple files for common manual approaches this action automates.

相关操作

在其他平台上执行相同任务

行业应用案例及应用

  • 展品提取将附件与简报按页码范围分开,以便分别提交附件。
  • 发现分布按保管人或发行人拆分文件,使用“部分”功能
  • 合同组成部分分离:按页码范围提取签名页、日程表、附件
  • 诉讼部门将合并后的诉状拆分为单独的文件以便立案。
  • 条款库创建使用标题拆分从主文档中提取标准条款

获取帮助