跳到主要内容

从中提取元数据 WordZapier

PDF4me 提取元数据 是一个 Zapier 读取标题、作者、主题、关键词、创建和修改日期、页数、字数以及任何自定义属性的操作 Word 无需打开文件即可获取文档。可用于文档编目、合规性跟踪、CMS 数据填充或基于元数据的路由。它返回的是结构化的元数据对象,而不是文件。

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

验证您的身份 API 要求

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

您不容错过的重要事实

仅需文件
文件名和区域性名称都是可选的。 Zapier 配置。
返回元数据,而非文件
输出结果是一个包含嵌套属性的元数据对象。响应中不包含文件 URL,此操作不会修改或返回文档本身。
自定义属性包含在内
通过以下方式添加的任何自定义文档属性 Word“高级属性”对话框与标准字段一起显示在元数据对象中。

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

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

:::

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

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

:::

PDF4me 提取 Word Zapier 元数据 - 文档、文件名
只有文件名称带有星号。文件名和区域性名称是可选的。

提取元数据的主要特点是什么?

  • 内置属性标题、作者、主题、关键词、公司
  • 日期信息创建日期、修改日期、最后打印日期
  • 文档统计页数、字数、字符数
  • 自定义属性提取用户自定义文档属性
  • JSON 输出结构化的 JSON 便于集成的格式

参数

“提取元数据”操作的完整参数列表。参数名称与以下内容匹配: Zapier 配置 UI 如上图所示。

快速设置清单
  1. 地图 文件文件名 从上一步开始
  2. (可选) 文化名称 如果区域日期格式很重要
范围必需的它的作用例子
FileRequiredWord document to read metadata from. Map from a previous step. Must provide full file content.[4. File from Step 4]
File NameConditionalWord filename with .docx or .doc extension.document.docx
Culture NameConditionalLocale used when interpreting region-specific values in the metadata.en-US

重要的: 仅有的 文件 需要地图 文件名 如果可以,则从上一步的文件名输出中获取。

提取元数据会返回什么?

PDF4me 提取元数据 操作返回一个 元数据 这是一个对象,而非文件,其中包含文档属性。将各个元数据字段映射到后续的 Zap 步骤,以便进行编目、合规性检查或 CMS 集成。

元数据(对象)

JSON 包含标题、作者、主题、关键词、创建日期、修改日期、页数、字数以及任何自定义属性的对象。将嵌套字段(例如 Metadata.Title 或 Metadata.Author)映射到后续步骤。

场地类型它包含什么
Job IdStringUnique identifier for the Zapier job execution.
MetadataObjectJSON object with document properties.
Metadata.TitleStringDocument title.
Metadata.AuthorStringDocument author.
Metadata.SubjectStringDocument subject.
Metadata.KeywordsStringDocument keywords.
Metadata.CreatedDateStringCreation date, in ISO 8601 format.
Metadata.ModifiedDateStringLast modification date.
Metadata.PageCountNumberTotal page count.
Metadata.WordCountNumberTotal word count.

例子 JSON 输出

{
"Job Id": "...",
"Metadata": {
"Title": "Q4 Financial Report",
"Author": "John Doe",
"Subject": "Financial Analysis",
"Keywords": "finance, Q4, report",
"CreatedDate": "2024-01-15T10:30:00Z",
"ModifiedDate": "2024-01-20T15:45:00Z",
"PageCount": 25,
"WordCount": 5280
}
}

典型配置

工作流程示例Common Zapier workflow patterns using Extract Metadata.
文档目录索引
  1. 当新文档上传到共享库时,会触发一个事件。
  2. PDF4me 从文件中提取元数据,包括标题、作者和关键词。
  3. 提取的字段将被插入到目录数据库或搜索索引中,以便后续查找。
合规审计跟踪
  1. 计划触发器会列出合规文件夹中的受控文档。
  2. PDF4me 提取元数据循环读取每个文件的修改日期和作者信息。
  3. 过滤器会将修改日期或作者不符合政策规定的任何文档标记为需要人工审核。
CMS元数据填充
  1. 文档在发布前会先放入暂存文件夹。
  2. PDF4me 从文件中提取元数据,包括标题、作者和关键词。
  3. 这些字段会发布到内容管理系统 (CMS) 中。 API 在编辑审核之前预先填写内容记录。

实用技巧

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.
Only File is required
File Name and Culture Name are both optional, there is no need to set them if the defaults are fine.
Empty properties return empty, not an error
A Word file with no Title or Author set simply returns an empty value for that field, the action does not fail.
This returns metadata, not the document
There is no File Url in the output. Use a different PDF4me Word action if the next step needs the actual document content.
Check for custom properties before assuming a field is missing
Fields added through Word's Advanced Properties dialog show up in the Metadata object too, review the full JSON output rather than only the standard fields.

速查表

场地价值
ActionExtract Metadata
File[Mapped from previous step]
File Namedocument.docx
Culture Nameen-US (optional)
Core outputMetadata.Title, Metadata.Author, Metadata.CreatedDate, Metadata.WordCount, and more

常见问题

Does Extract Metadata return the document itself?+
No. It returns a Metadata object containing document properties such as Title, Author, CreatedDate, and WordCount, not the Word file. Use a different PDF4me action if the next step needs the actual document content.
What if a Word document has no title or author set?+
The corresponding Metadata field returns empty for any built-in property that was never filled in. See Microsoft's guide to viewing and changing Office file properties for where these values come from in the source document.
Can I extract custom document properties, not just the built-in ones?+
Yes. Any custom properties added to the Word file through its Advanced Properties dialog are included in the Metadata object alongside the standard fields like Title and Author.
Is Culture Name required to extract metadata?+
No. Culture Name is optional. It only affects how region-specific values in the metadata, such as date formatting, are interpreted, the extraction itself works without it.
How do I map nested metadata fields like Metadata.Title in later Zap steps?+
Use the + button in a later step and select the nested field directly, for example Metadata.Title or Metadata.ModifiedDate, from the Extract Metadata step's output. See this overview of document properties for what each standard field typically represents.

相关操作

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

行业应用案例及应用

  • 文档审计跟踪提取修改日期和作者信息,以作合规性审计证据
  • 版本控制跟踪:利用创建和修改时间戳监控文档版本
  • 作者验证验证文档作者是否与授权人员名单相符
  • 保留政策执行:对照保留期限表检查创建日期,以做出归档决定。
  • 受控文档管理:跟踪文档属性,以符合 ISO 或质量管理规范

获取帮助