跳到主要内容

优化文档 - 压缩 Zapier

PDF4me 优化文档 是一个 Zapier 缩小行动 Word 不打开文档的文件大小 Word选择低、中或高压缩级别,可移除未使用的宏、注释、隐藏内容和个人元数据,并压缩嵌入的图像。返回更小的文件。 Word 文件用于下一步 Zap 步骤。

此操作的作用

需要 Word 从之前的 Zap 步骤中提取文档,并应用以下三种优化级别之一。“低”级别几乎保留所有内容并进行轻微精简;“中”级别会移除注释、宏、隐藏内容和个人信息,同时压缩图像;“高”级别还会额外移除跟踪修订和未使用的样式,以生成尽可能小的文件。此级别适用于控制电子邮件附件大小、减少云存储空间使用或准备分发文件。

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

验证您的身份 API 要求

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

您不容错过的重要事实

仅需文件
文件名、优化级别和区域性名称均为可选。如果未设置,优化级别默认为“中”。
更高压缩率会去除超过字节的数据。
中等和高级别会移除评论、宏、隐藏内容和个人元数据。高级别还会移除修订跟踪和未使用的样式,因此如果您需要保留历史记录,请务必备份原始文件。
减排百分比是目标,而非保证。
实际文件大小的缩减取决于文档的内容。相同大小的文件,图片少、格式冗余少的文件,其缩减幅度会小于格式繁杂、图片丰富的文档。

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

使用 + 旁边的按钮 文件文件名 从之前的 Zap 步骤(例如,Google 云端硬盘、Dropbox 或触发器)进行映射。 Word 文件必须提供完整内容,不能仅提供“存在但未显示”的引用。

:::

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

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

:::

PDF4me 优化 Word 文档 Zapier - 文件、文件名、优化级别、区域设置
配置“优化文档”操作:映射文件(必需)和文件名,设置优化级别(低、中、高),区域名称(可选)。

Optimize Document 的主要功能有哪些?

  • 三个优化级别目标尺寸减少程度:低(约0-10%)、中(约50-80%)、高(约80-90%)
  • 图像压缩:可配置的每级图像质量降低幅度
  • 内容清理移除 Medium 及以上级别文章中未使用的宏、评论和隐藏内容。
  • 格式规范化清理冗余格式和未使用的样式(高优先级)。
  • 个人信息删除移除 Medium 及以上平台上的作者、管理员和公司元数据
  • 字体优化规范化字体并移除不必要的字体属性

参数

优化文档操作的完整参数列表。参数名称与以下内容一致: Zapier 配置 UI 如上图所示。

快速设置清单
  1. 地图 文件Word来自您的触发器或上一步
  2. (可选)映射 文件名 从上一步开始
  3. 优化级别低、中(默认)或高
  4. (可选) 文化名称 用于特定区域处理
范围必需的它的作用例子
FileRequiredWord document to compress. Map from a previous step. Must provide full file content.[4. File from Step 4]
File NameConditionalWord filename with .docx or .doc extension for the output file.abc.docx
Optimization LevelConditionalLow, Medium, or High. Controls how aggressively content is removed and images are compressed. Defaults to Medium.Medium
Culture NameConditionalCulture code affecting locale-specific document processing, such as date and number formatting.en-US

优化程度对比如何?

特征低的中等的高的
Target file size reduction~0-10%~50-80%~80-90%
Image quality target~80%~60%~50%
FormattingPreservedNormalizedAggressive cleanup
CommentsPreservedRemovedRemoved
Tracked revisionsPreservedPreservedRemoved
Personal info (author/manager)PreservedRemovedRemoved
MacrosPreservedRemovedRemoved
Unused stylesPreservedPreservedRemoved
Hidden contentPreservedRemovedRemoved

优化文档返回什么?

PDF4me 优化文档 操作返回压缩后的数据 Word 该文件用于后续的 Zap 步骤。输出格式在所有 Zap 步骤中都是通用的。 PDF4me Word 文件返回操作 Zapier

关键输出字段(将这些字段映射到您的下一步)

文件 URL

API 下载优化后的端点 Word 文件。将其映射到下一步的文件输入。

api.pdf4me.com/Zapier/GetDocument?d=...
备用文件网址

备用下载 URL 文件名包含在路径中。

api.pdf4me.com/Zapier/GetAltDocument/.../document.docx
场地类型它包含什么
Job IdStringUnique identifier for the Zapier job execution.
File UrlURLAPI endpoint to download the optimized Word file.
Alternate File UrlURLAlternate download URL with the filename in the path.
File NameStringBase filename without extension.
Full File NameStringComplete filename with extension.
File ExtensionStringFile extension of the returned file, .docx.

例子 JSON 输出URL(仅显示格式,链接无效):

{
"Job Id": "...",
"File Url": "api.pdf4me.com/Zapier/GetDocument?d=...",
"Alternate File Url": "api.pdf4me.com/Zapier/GetAltDocument/.../document.docx",
"File Name": "document",
"Full File Name": "document.docx",
"File Extension": ".docx"
}

典型配置

工作流程示例Common Zapier workflow patterns using Optimize Document.
在发送电子邮件之前缩小附件尺寸
  1. 当文档被标记为可以通过电子邮件分发时,会触发一个触发器。
  2. PDF4me 将优化级别设置为“中”以优化文档运行,从而在减小文件大小和格式化之间取得平衡。
  3. Gmail 或 Outlook 会通过一个步骤将较小的文件作为附件发送。
减少云存储占用空间
  1. 已安排的 Zap 列表 Word Dropbox 或云端硬盘文件夹中超过大小阈值的文件。
  2. PDF4me 将优化级别设置为“高”,以最大程度地减少文档运行次数。
  3. 压缩文件会替换或补充云存储中的原始文件。
准备长期存档文件
  1. 季度项目或事项结束时会触发一个触发器。
  2. PDF4me 将优化级别设置为“低”以在减小文件大小的同时保留质量和修订历史记录,或设置为“中”以删除个人元数据。
  3. 上传步骤会将优化后的文件归档到冷存储中。

实用技巧

File: (Exists but not shown) causes errors
Select the mapping option that provides the file's full binary content instead of a reference. See Zapier & Power Automate Tips for the exact steps.
High removes tracked revisions
If you need to preserve comment and revision history, use Low or Medium instead of High, or archive the original file before compressing.
Optimization Level defaults to Medium
If you leave Optimization Level unset, the action applies Medium compression rather than skipping optimization.
Reduction percentages vary by document
A file with few embedded images and little redundant formatting will not shrink as much as an image-heavy file at the same optimization level.
Culture Name only affects locale formatting
It does not change how aggressively the document is compressed, leave it blank unless you specifically need locale-aware processing.

速查表

场地价值
ActionOptimize Document
File[Mapped from previous step]
File Nameabc.docx
Optimization LevelMedium (default)
Culture Nameen-US (optional)
ConnectionPDF4me API key

常见问题

How do I compress a Word document automatically in Zapier?+
Add the PDF4me Optimize Document action to a Zap, map the Word file from a previous step using the full-content option, and set Optimization Level to Low, Medium, or High. The action returns a smaller Word file with no manual compression in Word required.
What is the difference between Low, Medium, and High optimization?+
Low targets roughly 0-10% size reduction and preserves comments and revisions. Medium targets roughly 50-80% and removes comments, macros, hidden content, and personal info while preserving revisions. High targets roughly 80-90% and also removes revisions and unused styles. See Microsoft's community discussion on compressing Word documents for the manual alternative this action automates.
Does compressing a Word document remove comments or tracked changes?+
It depends on the level. Low preserves comments and revisions. Medium removes comments but preserves revisions. High removes both comments and revisions along with unused styles and hidden content.
Will compression reduce the image quality inside the document?+
Yes, images are recompressed as part of the size reduction. Low targets roughly 80% image quality, Medium roughly 60%, and High roughly 50%, so higher compression levels apply more aggressive image quality reduction.
Is Culture Name required to compress a Word document?+
No. Only File is required. Culture Name is optional and only affects locale-specific document processing, such as date and number formatting. See Zapier's guidance on setting up actions for general help configuring optional fields in a Zap.

相关操作

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

行业应用案例及应用

  • 电子邮件营销材料优化营销活动中的文档附件(中级)
  • 客户交付成果减小文件大小以加快客户端下载速度(低质量)
  • 提案分发:压缩 RFP 回复以便通过电子邮件提交(中等难度)
  • 报告分发优化月度报告,以便更广泛地通过电子邮件分发(中等难度)
  • 模板库清理降低模板存储需求(高层次存储)

获取帮助