跳到主要内容

PDF 元数据 Make获取文档信息

PDF4me 获取文档信息是 Make 读取模块 PDF 它会返回 11 个元数据字段,包括标题、作者、页数、文件大小等等,而不会修改源文件。你可以使用它按关键字路由文档、在转换前阻止上传过大的文件,或者自动将归档文件编目到电子表格中。

本模块的功能

PDF4me 获取文档信息 读取任何对象的元数据和结构属性。 PDF 无需修改源文件。它返回 11 个独立字段 - 标题、作者、主题、关键词、创建者、制作者、创建日期、修改日期、页数、文件大小和 PDF 版本 - 作为可映射的令牌,您可以将其直接连接到 Make 过滤器、路由、数据库模块或通知步骤。可利用此功能在转换步骤之前预先筛选文档大小,按作者或部门关键字路由文件,自动将存档上传内容编入 Airtable 或 Google Sheets,或在审批电子邮件中显示页数,以便审阅者了解他们正在审核的内容。

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

验证您的身份 API 要求

每一个 PDF4me 模块 Make 需要有效 联系创建或选择一个可以容纳您的 PDF4me API 关键在于确保场景能够安全地调用元数据服务。

您不容错过的重要事实

完全无损

该模块读取文件结构并返回数据。原始文件中没有字节。 PDF 文档会被写入、重新排序或删除。您映射的文档与下游传递的文档完全相同——可以安全地用于生产文件,不会对源文件造成任何更改。

返回了 11 个结构化字段

标题、作者、主题、关键词、创建者、制作者、创建日期、修改日期、页数、文件大小和 PDF 版本均可作为单独的可映射标记在输出包中提供 - 无需解析步骤或自定义函数即可提取单个值。

直接连接到路由逻辑

直接将页面计数、作者或关键词映射到 Make 根据文档属性筛选或路由以分支您的场景。将过大的文件路由到拒绝路径,或按部门发送。 PDFs 将文件归档到匹配的文件夹,或者跳过已编目的文件并进行重复检查。

PDF4me 获取文档信息模块显示连接已设置为 testuser01@pdf4me.com,文件已设置为与 Dropbox 映射 - 下载文件选项可见,文件名已映射自步骤 7 的文件名,文档数据也已映射自步骤 7 的数据。

选择 地图 在“文件”下,然后选择“映射”。 文件名文档 从下载步骤开始 PDF

参数

必需的: 联系文件名, 和 文档。 放 文件地图 首先,确保两个输入框都可见。文档需要二进制文件字节,单独使用 URL 字符串或文件名是行不通的。

范围必需的它的作用示例映射
ConnectionRequiredPDF4me API connection used by the scenario to authenticate metadata requests. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
FileRequiredDetermines how the PDF is supplied. Choose Map to wire File Name and Document from a prior module's output - the most common setup for multi-step scenarios.Map
File NameConditionalFilename with .pdf extension from the source module, required when File is set to Map. Map from the file name field of your Dropbox, Drive, or OneDrive step.7. File Name
DocumentConditionalBinary PDF content from the download step, required when File is set to Map. Must be actual file bytes - not a URL or a filename string. Map from the Data field of Dropbox or the File Content field of SharePoint.7. Data

我该如何阅读 PDF 元数据 Make

  1. 添加 PDF4me获取文档信息 针对你的情况。
  2. 选择 联系 (或点击) 添加 用你的 API 钥匙)。
  3. 在下面 文件, 选择 地图
  4. 地图 文件名 在下载步骤中,将文件名字段包含在内。 .pdf 扩大。
  5. 地图 文档 从同一步骤(通常是)到二进制数据字段 数据 在 Dropbox 或 文件内容 在 SharePoint/OneDrive 模块中)。
  6. 节省 点击 运行一次展开 文件信息 输出包 - 11 个元数据字段中的每一个都是一个单独的可映射令牌,随时可以连接到任何后续模块。

此模块返回哪些元数据字段?

该模块返回一个 文件信息 包含 11 个独立元数据字段的捆绑包——每个字段都可以独立映射。标题、作者、主题、关键词、创建者和制作者均来自…… PDF文档信息词典 (第 14.3.3 节) PDF 32000-1:2008 规范),而创建日期和修改日期如下 ISO 8601 时间戳格式设置。

场地类型它包含什么以及如何使用
TitleStringDocument title as stored in the PDF metadata dictionary. Empty string if not set. Map into an Airtable record or email subject line.
AuthorStringName of the person or system that created the document. Use in a Router to send files to department-specific folders based on creator.
SubjectStringSubject or description field from the document properties dialog. Often populated by enterprise document management systems.
KeywordsStringComma-separated keyword tags embedded by the author. Filter on this field in a Make Filter to route to the correct team or project.
CreatorStringApplication that originally created the document - for example, Microsoft Word, Adobe InDesign, or a PDF library name.
ProducerStringPDF conversion library or printer driver that generated the final PDF bytes. Different from Creator when a Word file was later exported to PDF.
Creation DateDateTimeISO 8601 timestamp of when the document was first created. Use in a Filter to process only documents created within a target date range.
Modification DateDateTimeISO 8601 timestamp of the last save. Compare to a stored baseline date to detect documents that have changed since last processing.
Page CountIntegerTotal number of pages. Use in a Filter to block files over a page limit or route short vs. long documents to different processing branches.
File SizeIntegerFile size in bytes. Gate on this before a conversion or email step - reject oversized files and notify the submitter to re-upload a compressed version.
PDF VersionStringPDF specification version (e.g. 1.4, 1.7, 2.0). Verify conformance before routing to a PDF/A archive that requires a specific version.

何时应该使用“获取文档信息”功能?

典型配置Common Make scenario patterns that use Get Document Information to drive routing, validation, or cataloging.
按关键字将文档路由到部门文件夹
  1. 新的 PDF 文件落入共享的 Dropbox 收件箱文件夹,并触发该场景。
  2. 获取文档信息 提取 Keywords 元数据字段。
  3. A Make 路由器将关键字值与部门名称(财务、法务、人力资源)进行比对。
  4. 每个分部将文件上传到 Google 云端硬盘中对应的团队文件夹。
  5. Slack 通知会提醒目标团队文档标题和页数。
预处理验证门
  1. 表单提交会触发该场景,并附带一个文件。 PDF
  2. 获取文档信息 返回页数和文件大小。
  3. 过滤器会阻止大于 50 MB 或小于 1 页的文件继续处理。
  4. 有效文件将继续进入转换或电子签名模块。
  5. 被拒绝的文件会触发一封电子邮件回复,要求提交者重新上传较小的版本。
自动将新上传的存档内容编入 Airtable
  1. 计划场景会遍历新场景。 PDFs 位于 OneDrive 存档文件夹中。
  2. 获取文档信息 提取每个文件的全部 11 个元数据字段。
  3. Airtable 模块会创建一个新记录,其中包含标题、作者、创建日期和页数。
  4. 该记录链接回 OneDrive 文件 URL,可一键检索。
  5. 过滤器会跳过已经存在匹配的 Airtable 记录的文件,以防止重复。

实用技巧

Structural fields are always populated
Page Count, File Size, and PDF Version come from the file structure itself, not optional metadata, so they are never empty even on documents with no author-supplied properties.
Empty strings are normal, not errors
Author, Title, Subject, Keywords, Creator, and Producer return empty strings when the document creator never set them. The module does not fail on missing metadata.
File Name and Document only appear after choosing Map
The panel starts with just Connection and File visible. Select Map under File to reveal the File Name and Document mapping fields.
Run Repair PDF first on suspect files
If incoming PDFs may be corrupted or come from an unreliable source, run Repair PDF before this module so metadata reads cleanly instead of returning empty fields.
Creator and Producer are often different
Creator names the authoring application, Producer names the library or driver that generated the final PDF bytes, useful for distinguishing a Word export from a native PDF tool.

速查表

场地价值
FileMap
File Name7. File Name
Document7. Data
Always populatedPage Count, File Size, PDF Version
Can be emptyTitle, Author, Subject, Keywords, Creator, Producer

常见问题解答

Does this module modify the PDF in any way?+
No. Get Document Information performs a strictly read-only inspection of the file. The module reads the document dictionary and cross-reference table to extract metadata values and returns them as a structured output bundle. No bytes in the source PDF are written, reordered, or removed during this process. The file you map into this module is identical byte-for-byte to what gets passed into any downstream module - you can safely run it on production documents without any risk of altering the originals.
What if the PDF has no metadata fields set?+
Page Count, File Size, and PDF Version are always populated because they are derived from the document structure itself rather than optional metadata fields. Author, Title, Subject, Keywords, Creator, and Producer will return empty strings when the document creator did not fill them in - this is common with PDFs generated by automated systems or older software that strips document information during export. The module does not error on empty metadata; it simply returns empty strings for those specific fields.
Can I use the Page Count output to branch my scenario conditionally?+
Yes - this is one of the most practical uses of the module. Map the Page Count field into a Make Filter condition placed after Get Document Information. For example, set the Filter to pass only when Page Count is greater than 20 and route those to a PDF splitting workflow, while shorter documents continue to an email step. You can similarly use File Size to reject oversized uploads before a conversion step, or check Creation Date to process only documents created within a target date range such as the current calendar month.
What PDF versions and variants does this module support?+
The module reads metadata from all common PDF versions - PDF 1.0 through PDF 2.0 - as well as PDF/A archival variants including PDF/A-1, PDF/A-2, and PDF/A-3. The PDF Version field in the output tells you exactly which specification the document conforms to (for example 1.4, 1.7, or 2.0). This is particularly useful in compliance workflows where you need to verify that a document meets a required PDF version before it is sent to a regulated archive or long-term storage system.
How do I access a specific metadata field in a downstream module?+
After the module runs, expand the File Info output bundle in the Make mapping panel - each of the 11 fields (Title, Author, Subject, Keywords, Creator, Producer, Creation Date, Modification Date, Page Count, File Size, PDF Version) appears as its own individually selectable token. Click any token to insert it into a field in the next module - for example, map Title into the Subject field of a Gmail step, Page Count into a Filter condition, or Author into an Airtable record column. No custom function or JSON parsing is required.

相关操作

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

获取帮助