跳到主要内容

从附件中提取 PDFMake

从附件中提取 PDF 是一个 Make 检索嵌入在某个文件中的所有文件的模块 PDF 它会在场景中自动生成文档。 PDF 标准投资组合 PDF 附件,以及 PDF/A-3 源文件,并将每个提取的文件作为返回。 Base64-已编码的项已放入附件数组中,可供迭代器单独处理。

本模块的功能
PDF4me 从附件中提取 PDF 从 a 中检索所有嵌入文件 PDF 文件或 PDF 投资组合 Make 场景。提供 PDF 作为二进制缓冲区,该模块返回一个附件数组,其中每个项目都包含文件名和文件数据(Base64)。链 a Make 迭代器可单独处理每个文件:上传到云存储、通过电子邮件发送给收件人、将数据文件导入数据库或传递给另一个模块。
使用迭代器分别处理每个附件。

该模块将所有附件以数组形式返回到单个输出包中。添加一个 Make 迭代器 紧接着使用模块将数组拆分成单独的捆绑包,每个附件对应一个捆绑包。每个捆绑包包含 文件名文件数据Base64因此,您可以根据类型或名称将文件路由到不同的目标位置。

文件数据是 Base64编码

每个提取的附件都以以下形式返回: Base64 字符串中的 文件数据 领域。大多数 Make 存储集成(Google Drive、Dropbox、OneDrive)接受 Base64 直接转换。如果下游模块需要二进制输入,则使用以下方式转换: Make toBinary(FileData, 'base64') 映射前的功能。

PDF 投资组合和 PDF/A-3 档案

超越标准 PDF 附件,此模块负责处理。 PDF 投资组合 (多文件容器)和 PDF/A-3 归档包含嵌入式源文件的文档。 PDF/A-3源文件(Word, ExcelXML)在归档时被提取。 PDF 根据规定,在合规存储条件下保持完好无损。 PDF/A-3 规格

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

验证您的身份 API 要求

要访问 PDF4me 网站 API 通过 Make每个请求都必须包含正确的身份验证凭据。身份验证可确保您与客户端之间的通信安全。 Make 场景和 PDF4me的附件提取服务。

使用 PDF4me 从 PDF 中提取附件模块,显示从先前模块映射的文件名和文档字段。

地图 文件名文档 从上一步下载后,然后链接一个 Make 迭代器 处理每个提取的附件。

如何设置从文件中提取附件 PDFMake

  1. 添加 PDF4me > 从附件中提取 PDF 针对你的情况。
  2. 选择您的 联系 或点击 添加 用你的 API 钥匙。
  3. 地图 文件名 (带有 .pdf 扩展名)来自上一个模块或输入静态名称。
  4. 地图 文档 (二进制) PDF 来自 Google 云端硬盘、Dropbox、电子邮件或缓冲区 HTTP 下载步骤。
  5. 添加一个 Make 迭代器 完成此模块后,将其映射到 附件 数组输出。
  6. 将下游模块连接到迭代器输出:上传到云存储、电子邮件、导入数据或按文件类型路由。

参数

范围必需的它的作用例子
File NameRequiredFilename of the source PDF including the .pdf extension. Map from the previous module's file name output or enter a static name.portfolio.pdf
DocumentRequiredBinary PDF file content. Map from a Google Drive, Dropbox, email, or HTTP download step. The PDF must contain embedded attachments for the module to return results.[PDF Buffer]

输出

场地类型它包含什么
AttachmentsArrayCollection of all extracted attachment objects. Feed into a Make Iterator to process each file individually.
File NameStringFilename of the individual attachment including its extension (e.g. source_data.xlsx).
File DataBase64Content of the individual attachment encoded as Base64. Map to a storage upload module or decode with toBinary() for modules that require binary input.

您可以从 A 中提取哪些文件类型 PDF

支持以附件形式嵌入的任何文件类型:电子表格(XLSX、 CSV),Word文档(DOCX),图像(PNGJPG)、邮政编码或其他 PDFs这包括以下文件中的文件: PDF 投资组合 (Adobe 的多文件容器格式)和嵌入其中的源文件 PDF/A-3 根据档案 ISO 19005-3 标准该模块会在返回的文件名字段中保留原始文件格式和扩展名。

工作流程示例

从合规性申报中提取并整理证据文件 PDFs

  1. 扳机合规性提交 PDF 已收到(电子邮件附件或监视文件夹)
  2. 下载 PDF获取合规包
  3. 提取附件检索所有嵌入的证据文件
  4. 迭代器分别处理每个提取的附件。
  5. 按扩展分类:将文件路由至相应的合规文件夹(电子表格、图片、文档)
  6. 上传将每个文件保存到正确的文件夹中 SharePoint 或 Google 云端硬盘
  7. 日志将所有提取的文件记录到合规数据库中
  8. 通知团队:通知合规团队已处理提交内容

常见问题解答

What types of files can this module extract from a PDF?+
The module extracts any file type embedded as an attachment: spreadsheets, Word documents, images, CSVs, ZIPs, or other PDFs. This includes files in PDF portfolios and source files embedded in PDF/A-3 archive documents. Original file formats and extensions are preserved in the returned File Name field.
How do I process multiple attachments returned by the module?+
The module returns an Attachments array. Use a Make Iterator immediately after to split the array into individual bundles, one per attachment. Each bundle contains File Name and File Data (Base64). You can then upload each file to Google Drive, Dropbox, or SharePoint, or apply routing logic based on the file extension.
What is the File Data format and how do I use it?+
File Data is returned as a Base64-encoded string. Most Make storage modules (Google Drive, Dropbox, OneDrive) accept Base64 data directly in their upload fields. If a module requires binary input, use the Make function toBinary(File Data, "base64") to convert before mapping. No separate decoding step is needed for standard storage integrations.
Does this module work with PDF/A-3 source file extraction?+
Yes. PDF/A-3 is the only PDF/A variant that permits embedded file attachments. If your archive workflow produces PDF/A-3 documents with embedded source files such as Word, Excel, or XML, this module retrieves them for editing or reprocessing while the PDF/A-3 archive document remains intact in your compliance storage.

获取帮助