合并PDF1
中级
这是一个IT Ops领域的自动化工作流,包含 7 个节点。主要使用 Merge, HttpRequest, ManualTrigger, ReadWriteFile, MergePdfs 等节点。 使用CustomJS API合并多个PDF文件
前置要求
- •可能需要目标 API 的认证凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "MVPlLz3CiQok6rXy",
"meta": {
"instanceId": "7599ed929ea25767a019b87ecbc83b90e16a268cb51892887b450656ac4518a2",
"templateCredsSetupCompleted": true
},
"name": "合并PDF1",
"tags": [],
"nodes": [
{
"id": "282b146b-ee58-4089-9ee6-94b153024bfa",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
740,
-40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "39a37abd-924f-474c-8dde-7536170797f2",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
960,
-140
],
"parameters": {
"url": "=https://www.intewa.com/fileadmin/documents/pdf-file.pdf",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "b2359766-896f-4966-873e-b2dc0ee4f684",
"name": "HTTP请求2",
"type": "n8n-nodes-base.httpRequest",
"position": [
960,
60
],
"parameters": {
"url": "=https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "7f70b25c-a171-4a7c-8067-141ce3275226",
"name": "合并",
"type": "n8n-nodes-base.merge",
"position": [
1180,
-40
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "183b90b4-5f22-4ff8-b47f-96b7c4d522d7",
"name": "从磁盘读取/写入文件4",
"type": "@custom-js/n8n-nodes-pdf-toolkit.mergePdfs",
"position": [
1400,
-40
],
"parameters": {},
"credentials": {
"customJsApi": {
"id": "h29wo2anYKdANAzm",
"name": "CustomJS account"
}
},
"typeVersion": 1
},
{
"id": "131474f2-c6ca-4d1f-ba49-1f2f6d91394a",
"name": "从磁盘读取/写入文件",
"type": "n8n-nodes-base.readWriteFile",
"position": [
1620,
-40
],
"parameters": {
"options": {},
"fileName": "test.pdf",
"operation": "write"
},
"typeVersion": 1
},
{
"id": "a86ddc41-60aa-482c-90f2-8eacc6bb0a9b",
"name": "触发器启动",
"type": "n8n-nodes-base.readWriteFile",
"position": [
1840,
-40
],
"parameters": {
"options": {},
"fileSelector": "test.pdf"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "02f73022-a678-4660-ab1d-3531e4848cba",
"connections": {
"Merge": {
"main": [
[
{
"node": "Merge PDF1",
"type": "main",
"index": 0
}
]
]
},
"Merge PDF1": {
"main": [
[
{
"node": "Read/Write Files from Disk",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Read/Write Files from Disk": {
"main": [
[
{
"node": "Read/Write Files from Disk4",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
},
{
"node": "HTTP Request2",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - IT 运维
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
通过CustomJS API下载并合并多个PDF文件
使用CustomJS API从URL下载并合并多个PDF文件
Code
Split Out
Http Request
+3
7 节点CustomJS
其他
我的工作流6
使用CustomJS API从PDF中提取特定页面
Http Request
Manual Trigger
Extract Pages
3 节点CustomJS
设计
使用Bright Data MCP服务器和Google Gemini进行LinkedIn网页抓取
使用Bright Data MCP服务器和Google Gemini提取和转换LinkedIn数据
Set
Code
Merge
+9
20 节点Ranjan Dailata
人工智能
pdf 转文本
使用CustomJS API将HTML转换为PDF并从PDF中提取文本
Code
Manual Trigger
Html2 Pdf
+1
5 节点CustomJS
设计
使用CustomJS API将HTML转换为PDF并压缩文件
使用CustomJS API将HTML转换为PDF并压缩文件
Code
Manual Trigger
Html2 Pdf
+2
9 节点CustomJS
设计
AI智能助手:与Supabase存储和Google Drive文件对话
AI智能助手:与Supabase存储和Google Drive文件对话
If
Set
Wait
+20
62 节点Mark Shcherbakov
工程