跳到主要内容

创造 PDF/An8n

创造 PDF/A 是一个 n8n 模块 PDF4me 将标准 PDF 一个 ISO符合 PDF/A 归档文件。发送 PDF 作为二进制数据, Base64或者 URL从以下选项中选择一个合规级别 PDF/A-1b 至 PDF/A-3a,并收到已验证的存档 PDF 适合长期储存。

此节点的功能

PDF4me: 创造 PDF/A 一个标准 PDF 并将其转换为 PDF/A 一份档案文件 n8n 步骤。从涵盖基本合规性的八个合规级别中进行选择(PDF/A-1b、2b、3b),可访问性标记一致性(PDF/A-1a、2a、3a),以及Unicode映射一致性(PDF/A-2u, 3u)。返回一个已验证的 PDF/A 文件包含嵌入式字体和保留的元数据,非常适合用于法律档案、政府文件、医疗记录和财务数据保存工作流程等。 ISO 符合 19005 标准。

相关博客文章(1)

验证您的身份 API 要求

每一个 PDF4me 节点 n8n 需要有效 用于连接的凭证创建或选择一个可以容纳您的 PDF4me API 关键在于工作流程能够进行身份验证 PDF/A 安全地处理转换请求。

您不容错过的重要事实

允许升级和允许降级控制回退
这些可选的高级选项允许 PDF4me 如果无法达到要求的合规级别,则可以应用高于或低于要求的合规级别,而不是直接判定为不合格。这两个选项都位于“高级选项”下,只有在点击“添加选项”后才会显示。
文档名称仅用于跟踪,并非输出文件名。
文档名称引用了来源 PDF 用于处理和审计跟踪。实际返回的文件名由“输出文件名”单独控制。
只有 PDF/A-3 系列允许嵌入文件
PDF/A-3b, PDF/A-3u,以及 PDF/A-3a 是唯一允许您嵌入其他文件的合规级别(XMLCSVCAD, Word)在档案馆内 PDFPDF/A-1 和 PDF/A-2 层不支持嵌入。
创建 PDF/A n8n 节点,已配置凭据 PDF4me 帐户,操作“创建 PDF/A”,输入数据类型“二进制数据”,输入二进制字段“data”,输出文件名“converted_pdfa.pdf”,二进制输出属性名称“data”,文档名称“document.pdf”,PDF/A 合规性“PDF/A-1b B 级基本”,以及一个折叠的“高级选项”部分。

完整节点面板:源 PDF 通过二进制数据, PDF/A-1b 合规级别已选定

参数

必需 n8n 用户界面: 输入数据类型、文档名称和 PDF/A 合规性。输出文件名(默认值) 已转换的pdfa。pdf)和二进制输出属性名称(默认值) 数据)是可选的便捷字段,不会发送到 PDF4me REST API 直接设置。允许升级、允许降级和自定义配置文件位于可选的“高级选项”面板下。条件模板字段(输入二进制字段, Base64 文档内容,文件 URL)仅当选择与其匹配的输入数据类型时才会出现。

范围必需的它的作用例子
Input Data TypeRequiredHow the source PDF enters the node. Binary Data reads from a previous node (default, most common). Base64 String accepts an encoded PDF. URL downloads the PDF from a public link.Binary Data
Input Binary FieldConditionalName of the binary property on the incoming n8n item that holds the PDF. Required when Input Data Type is Binary Data. Defaults to data.data
Base64 Document ContentConditionalBase64-encoded PDF content. Required when Input Data Type is Base64 String.JVBERi0xLjQK...
File URLConditionalPublicly reachable URL to the PDF file. Required when Input Data Type is URL.https://abc.com/sample.pdf
Output File NameOptionalFilename of the converted PDF/A file returned by the node. Default is converted_pdfa.pdf. Not sent to the underlying REST API, applied by the n8n node.converted_pdfa.pdf
Binary Output Property NameOptionalName of the binary property the output item exposes. Default is data. Use a different name when a downstream node expects it.data
Document NameRequiredName of the source PDF, used for reference and tracking. Maps to the REST API's required File Name field.document.pdf
PDF/A ComplianceRequiredThe target archival compliance level. Options: PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2u, PDF/A-2a, PDF/A-3b, PDF/A-3u, PDF/A-3a.PDF/A-1b (Level B Basic)
Allow UpgradeOptionalAdvanced Option. When true, PDF4me may apply a higher compliance level than requested if the source PDF already qualifies.true
Allow DowngradeOptionalAdvanced Option. When true, PDF4me falls back to a compatible lower compliance level instead of failing if the exact level cannot be met.false
Custom ProfilesOptionalAdvanced Option. JSON-like string for additional conversion settings, for specialized requirements only.{"outputDataFormat":"base64","preserveMetadata":true}

PDF/A 合规级别

根据归档要求的严格程度,这八种合规选项分为三类。

PDF/A-1b, PDF/A-2b, PDF/A-3b基本符合性
可靠地再现文档的视觉外观。 PDF/A-1b 目标 PDF 最高可达1.4, PDF/A-2b 增加了透明度和数字签名支持 PDF 1.7, PDF/A-3b 还允许嵌入类似这样的文件 XMLCSVCAD 或 Word 文件。
PDF/A-1a, PDF/A-2a, PDF/A-3a无障碍合规性
基本合规性加上文档结构、文本跨度标记和 language 屏幕阅读器兼容性规范。当存档文档必须符合无障碍标准时,此规范为必需项。
PDF/A-2u, PDF/A-3uUnicode映射一致性
基本符合所有映射到 Unicode 的文本,以实现可靠的国际字符支持和跨平台文本提取。

输出结果包含哪些字段?

场地类型它包含什么
fileNameStringFilename of the generated PDF/A file, set from Output File Name (default converted_pdfa.pdf).
mimeTypeStringMIME type of the generated file, application/pdf.
fileSizeNumberSize of the generated PDF/A file in bytes.
successBooleanTrue when the conversion completed successfully. Use to route error-handling branches.
inputDataTypeStringWhich input mode was used: binary, base64, or url.
sourceFileNameStringThe original Document Name that was processed, kept for audit trails.
pdfaComplianceStringThe compliance level that was applied during conversion.
isPdfaCompliantBooleanWhether the generated PDF meets the requested PDF/A compliance standard.
complianceLevelStringDetail on the specific compliance level achieved.
Binary (data)BinaryThe generated PDF/A file under Binary Output Property Name (default data). Pass into Write Binary File, Email, or any storage upload.

如何设置创建 PDF/An8n

  1. 添加 PDF4me 致你 n8n 工作流程和设置 行动创造 PDF/A
  2. 用于连接的凭证请选择您的 PDF4me 凭证或点击 创建新凭证 并粘贴你的 API 钥匙。
  3. 输入数据类型二进制数据 (默认), Base64 String, 或者 URL 并填写匹配字段。
  4. 文档名称 到源头 PDF供参考的姓名。
  5. (可选)更改 输出文件名 从默认值 converted_pdfa.pdf二进制输出属性名称 从默认值 data
  6. 选择一个 PDF/A 遵守 根据您需要的基本兼容性、可访问兼容性或 Unicode 映射兼容性来划分级别。
  7. (可选)点击 添加选项 在“高级选项”下进行设置 允许升级允许降级, 或者 自定义配置文件
  8. 执行节点并路由归档 PDF 写入二进制文件、电子邮件或云存储。

典型配置

工作流程示例Common n8n workflow patterns using Create PDF/A.
已签署合同存档以符合存储要求
  1. Google 云端硬盘下载节点会提取一份已签署的合约。 PDF (二进制数据,属性) 数据)。
  2. PDF4me 创造 PDF/A 运行方式为输入数据类型为二进制数据 PDF/A 合规性设定为 PDF/A-2b。
  3. “写入二进制文件”节点保存归档文件。 PDF 使用以下方式保存到合规存档文件夹 $json。fileName
无障碍政府表格提交
  1. webhook 会接收一份已填写的监管表格,该表格以 base64 编码的形式呈现。 PDF
  2. PDF4me 创造 PDF/A 已配置输入数据类型 Base64 StringPDF/A 合规性设定为 PDF/A-1a 用于屏幕阅读器辅助功能。
  3. 档案 PDF 已上传至 SharePoint 待提交的文档库。
财务记录保存,并嵌入审计文件
  1. 一个 HTTP 请求节点下载生成的发票 PDF 公众 URL
  2. PDF4me 创造 PDF/A 使用输入数据类型运行 URLPDF/A 合规性设定为 PDF/A-3b,允许嵌入一个 CSV 审计跟踪 PDF
  3. 结果将存储到长期财务记录档案中。
文件生成后的患者记录保存
  1. PDF4me 生成文档(单项)生成患者出院总结 PDF 使用模板。
  2. 输出直接链接到 PDF4me 创造 PDF/APDF/A 合规性设定为 PDF/A-2a 用于符合 HIPAA 标准的长期保存。
  3. 电子邮件节点发送存档 PDF 送交档案部门。

实用技巧

Allow Downgrade avoids hard failures
If the source PDF cannot fully meet the requested compliance level, enabling Allow Downgrade lets PDF4me fall back to a compatible lower level instead of erroring out the workflow.
Accessible levels need real document structure
PDF/A-1a, PDF/A-2a, and PDF/A-3a require tagged content and language specification. A scanned image-only PDF with no text layer will not gain accessibility from conversion alone.
Document Name is not the output filename
Document Name is a tracking reference for the source file. Set Output File Name separately to control what the returned PDF/A file is called.
Default to Basic unless you need more
PDF/A-1b, PDF/A-2b, or PDF/A-3b cover most archival requirements. Reach for the accessible (a) or Unicode (u) variants only when the recipient or regulation specifically requires them.
Only PDF/A-3 embeds extra files
If your workflow needs to bundle source data (XML, CSV, CAD, Word) inside the archival PDF, you must pick PDF/A-3b, PDF/A-3u, or PDF/A-3a. The 1 and 2 families do not support embedding.
Advanced Options are optional
Leave Allow Upgrade, Allow Downgrade, and Custom Profiles unset unless you have a specific reason to override the default conversion behavior.

速查表

场地价值
ActionCreate PDF/A
Input Data TypeBinary Data
Input Binary Fielddata
Document Namedocument.pdf
Output File Nameconverted_pdfa.pdf
Binary Output Property Namedata
PDF/A CompliancePDF/A-1b (Level B Basic)
Allow Upgradetrue
Allow Downgradefalse
CredentialsPDF4me API credential

常见问题解答

What is PDF/A?+
PDF/A is an ISO-standardized (ISO 19005) subset of PDF built for long-term archival. It requires embedded fonts, restricted color spaces, and preserved metadata so the document renders identically decades from now, regardless of the software used to open it.
How do I convert a PDF to PDF/A in n8n?+
Add the PDF4me node, set Action to Create PDF/A, provide the source PDF as Binary Data, Base64, or URL, set Document Name, choose a PDF/A Compliance level, and execute. The node returns the converted PDF/A file plus conversion metadata such as isPdfaCompliant.
How do I save a PDF in PDF/A format?+
Manually, most PDF editors offer a Save As or Export to PDF/A option under compliance or accessibility settings. In an automated n8n workflow, PDF4me Create PDF/A performs this conversion programmatically for every PDF that passes through the node, no manual export step needed.
What is the difference between PDF/A-1b, PDF/A-2b, and PDF/A-3b?+
PDF/A-1b is the basic conformance level supporting PDF versions up to 1.4. PDF/A-2b builds on PDF 1.7 and adds support for transparency, image compression, and digital signatures. PDF/A-3b adds the ability to embed additional files such as XML, CSV, CAD, or Word documents inside the archival PDF.
What do Allow Upgrade and Allow Downgrade control?+
Allow Upgrade lets PDF4me apply a higher compliance level than requested when the source PDF already qualifies. Allow Downgrade lets PDF4me fall back to a compatible lower level when the exact requested level cannot be achieved, instead of failing the conversion.
Do I need to tag my PDF before requesting an accessible compliance level?+
PDF/A-1a, PDF/A-2a, and PDF/A-3a require structured, tagged content to be meaningful for screen readers. A scanned image-only PDF with no underlying text layer will convert but will not gain real accessibility benefits without OCR and tagging first.

相关操作

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

用例

政府和监管合规

  • 将文档转换为 PDF/A 适用于政府文件、监管备案和官方文件的格式,需要长期存档并符合法律效力。
  • 通过将法律文件、合同和官方记录转换为以下格式来处理它们: PDF/A 法庭文件、法律程序和监管合规的格式
  • 将历史文献、档案和官方记录转换为 PDF/A 适用于长期保存、数字化归档和符合归档标准的格式

财务和银行文件

  • 将财务报表、审计报告和银行单据转换为 PDF/A 监管合规、财务报告和长期记录保存的格式
  • 通过将税务文件、合规报告和财务记录转换为以下格式来处理它们: PDF/A 监管申报、审计追踪和财务合规的格式
  • 将保险文件、理赔记录和财务合同转换为 PDF/A 用于长期存储、法规遵从和法律文件的格式

医疗保健和医疗记录

  • 将医疗记录、病人档案和医疗保健文档转换为 PDF/A 符合 HIPAA 标准、医疗记录保存和长期患者数据保存的格式
  • 处理临床报告、实验室结果和医学影像文档,并将它们转换为 PDF/A 医疗记录管理、合规和归档格式
  • 将药品文档、临床试验记录和医学研究数据转换为 PDF/A 用于监管合规、研究文档和长期保存的格式

获取帮助