8
n8n 中文网amn8n.com

自动化PDF表单填写,用于W-9等,使用PDF.co

中级

这是一个Document Extraction, Multimodal AI领域的自动化工作流,包含 6 个节点。主要使用 Set, PDFco Api, ManualTrigger 等节点。 自动化PDF表单填写,用于W-9等,使用PDF.co

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "ab1b7d2d-7eac-45eb-9e0a-36f14c56df14",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -704,
        3520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "80a9bda5-1301-45b3-b58a-0245035500d3",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1376,
        2864
      ],
      "parameters": {
        "width": 400,
        "height": 1056,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "32f206af-66d5-48df-ac6a-0b590afa6864",
      "name": "便签56",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        2864
      ],
      "parameters": {
        "color": 7,
        "width": 1360,
        "height": 1056,
        "content": "# 📝 自动填写 PDF 表单(W-9 表示例)"
      },
      "typeVersion": 1
    },
    {
      "id": "27694236-37b3-49ee-9aa0-222e2cd92558",
      "name": "W9 数据",
      "type": "n8n-nodes-base.set",
      "position": [
        -464,
        3520
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "42962861-eb1b-491f-ac74-c35b240dd5e6",
              "name": "Name",
              "type": "string",
              "value": "Jim"
            },
            {
              "id": "ca52307b-b7b0-41d5-9ac2-0048fe73f65f",
              "name": "Business",
              "type": "string",
              "value": "Bobs Appliances"
            },
            {
              "id": "0bf4b185-eb2e-4deb-ab81-23665d0f80a6",
              "name": "Address",
              "type": "string",
              "value": "general ave"
            },
            {
              "id": "f50ab353-57fc-4d30-babd-c3defa4f38a5",
              "name": "CityState",
              "type": "string",
              "value": "Atlanta GA"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "9f603647-99ca-46be-974a-61b3b477c325",
      "name": "填写 PDF 表单",
      "type": "n8n-nodes-pdfco.PDFco Api",
      "position": [
        -32,
        3456
      ],
      "parameters": {
        "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
        "fields": {
          "metadataValues": [
            {
              "text": "={{ $json.Name }}",
              "fieldName": "topmostSubform[0].Page1[0].f1_01[0]"
            },
            {
              "text": "={{ $json.Business }}",
              "fieldName": "topmostSubform[0].Page1[0].f1_02[0]"
            },
            {
              "text": "={{ $json.Address }}",
              "fieldName": "topmostSubform[0].Page1[0].Address_ReadOrder[0].f1_07[0]"
            },
            {
              "text": "={{ $json.CityState }}",
              "fieldName": "topmostSubform[0].Page1[0].Address_ReadOrder[0].f1_08[0]"
            }
          ]
        },
        "operation": "Fill a PDF Form",
        "advancedOptions": {}
      },
      "credentials": {
        "pdfcoApi": {
          "id": "wGorcCULfsY1va25",
          "name": "PDF.co account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "09f32826-5dc4-4d43-b2a3-c6f28e5e3610",
      "name": "便签63",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        3152
      ],
      "parameters": {
        "color": 3,
        "width": 224,
        "height": 464,
        "content": "### 2️⃣ 连接 PDF.co"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "W9 Data": {
      "main": [
        [
          {
            "node": "Fill in PDF Form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "W9 Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 文档提取, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量6
分类2
节点类型4
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部链接
在 n8n.io 查看

分享此工作流