8
n8n 中文网amn8n.com

从 PDF 扫描到 Nextcloud

初级

这是一个Other, IT Ops领域的自动化工作流,包含 5 个节点。主要使用 NextCloud, HttpRequest, ScheduleTrigger 等节点。 通过 ScanservJS 自动将扫描文档上传到 Nextcloud

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "EJHT9UmGXNOyynV0",
  "meta": {
    "instanceId": "a67174bc280416abad7fd5fdbb66d968f3f284b847009b8f7b28adae86c50c98",
    "templateCredsSetupCompleted": true
  },
  "name": "从 PDF 扫描到 Nextcloud",
  "tags": [],
  "nodes": [
    {
      "id": "574d02f2-54c9-4f24-9c8b-4618ccdf2c7c",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        -80
      ],
      "parameters": {
        "url": "http://192.168.1.100:8080/api/v1/files",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7a1b5ef3-750f-45c5-b60e-34d463978abf",
      "name": "Nextcloud",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        340,
        -80
      ],
      "parameters": {
        "path": "=/Scans/{{ $json.name }}",
        "binaryDataUpload": true
      },
      "credentials": {
        "nextCloudApi": {
          "id": "P2d7981fwo6hiE8n",
          "name": "NextCloud account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "93a27a7e-d709-4ceb-b062-4136fcaa7c0a",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -80
      ],
      "parameters": {
        "url": "=http://192.168.1.100:8080/api/v1/files/{{ $json.name }}",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "*/*"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "77388051-b1b3-4a75-8190-628cb10c6734",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -280,
        -80
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c49a991e-0faf-4326-9238-d3cf4a661ea5",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -220
      ],
      "parameters": {
        "width": 900,
        "height": 380,
        "content": "## 将扫描文档复制到 Nextcloud"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1c982aa5-fffb-469b-8b2c-8f5b974f9f44",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Nextcloud",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

初级 - 其他, IT 运维

需要付费吗?

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

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

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
Joachim Hummel

Joachim Hummel

@jhummel

Automation consultant with 30+ years of IT experience. Specialized in building efficient workflows with n8n for freelancers and small to medium-sized businesses.

外部链接
在 n8n.io 查看

分享此工作流