Api2Pdf - PDF 生成,由 AWS Lambda MCP 服务器驱动
高级
这是一个Document Extraction, AI RAG领域的自动化工作流,包含 17 个节点。主要使用 HttpRequestTool, McpTrigger 等节点。 使用Api2Pdf和AWS Lambda转换和处理PDF文件
前置要求
- •可能需要目标 API 的认证凭证
使用的节点 (17)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "L7ZgmrqmEBeiLlPk",
"meta": null,
"name": "Api2Pdf - PDF 生成,由 AWS Lambda MCP 服务器驱动",
"tags": [],
"nodes": [
{
"id": "65d3bc5d-fb22-4959-9fde-ebf153e1bfc3",
"name": "设置说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1380,
-240
],
"parameters": {
"color": 4,
"height": 1060,
"content": "### ⚙️ 设置说明"
},
"typeVersion": 1
},
{
"id": "94fe9d0f-2004-409b-a8cc-8217f65d20c1",
"name": "工作流概述",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
-240
],
"parameters": {
"width": 420,
"height": 1300,
"content": "## 🛠️ Api2Pdf - PDF 生成,由 AWS Lambda MCP 服务器驱动 ✅ 9 个操作"
},
"typeVersion": 1
},
{
"id": "9fb074ab-63a5-4128-a578-9ccedea16425",
"name": "Api2Pdf - PDF 生成,由 AWS Lambda MCP 服务器驱动",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
-580,
-240
],
"webhookId": "75fd1faf-ce37-44d9-9e2b-d19840d7b2c7",
"parameters": {
"path": "api2pdf---pdf-generation,-powered-by-aws-lambda-mcp"
},
"typeVersion": 1
},
{
"id": "a7de75a3-d818-43e1-a3da-93f727a63fda",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
-100
],
"parameters": {
"color": 2,
"width": 700,
"height": 200,
"content": "## Headless Chrome"
},
"typeVersion": 1
},
{
"id": "93b208ae-c5a1-4403-9533-eed464c4a850",
"name": "将原始 HTML 转换为 PDF",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-520,
-60
],
"parameters": {
"url": "=https://v2018.api2pdf.com/chrome/html",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Convert raw HTML to PDF"
},
"typeVersion": 4.2
},
{
"id": "9362c0b2-02eb-4d27-8098-13791767ef25",
"name": "将 URL 转换为 PDF",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-320,
-60
],
"parameters": {
"url": "=https://v2018.api2pdf.com/chrome/url",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $fromAI('url', 'Url of the page to convert to PDF. Must start with http:// or https://.', 'string') }}"
},
{
"name": "output",
"value": "={{ $fromAI('output', 'Specify output=json to receive a JSON output. Defaults to PDF file.', 'string') }}"
}
]
},
"toolDescription": "Convert URL to PDF\n\nParameters:\n- Query parameters:\n • url (required) - Url of the page to convert to PDF. Must start with http:// or https://.\n • output (optional) - Specify output=json to receive a JSON output. Defaults to PDF file."
},
"typeVersion": 4.2
},
{
"id": "8e713c5a-1416-4c77-bff1-ca2e01d82699",
"name": "将 URL 转换为 PDF 1",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-120,
-60
],
"parameters": {
"url": "=https://v2018.api2pdf.com/chrome/url",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Convert URL to PDF"
},
"typeVersion": 4.2
},
{
"id": "d577b5ba-7dc9-48ca-8f59-483423cd3380",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
140
],
"parameters": {
"color": 3,
"width": 300,
"height": 200,
"content": "## Libre Office"
},
"typeVersion": 1
},
{
"id": "a25f441d-4db0-48a0-a3df-4c0df9922d94",
"name": "将 Office 文档或图像转换为 PDF",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-520,
180
],
"parameters": {
"url": "=https://v2018.api2pdf.com/libreoffice/convert",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Convert office document or image to PDF"
},
"typeVersion": 4.2
},
{
"id": "292f4eb9-8c03-4687-ac9d-129780ca1110",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
380
],
"parameters": {
"color": 4,
"width": 300,
"height": 200,
"content": "## 合并/组合 PDF"
},
"typeVersion": 1
},
{
"id": "3efbf8bc-12ba-4549-b22c-efd94393b968",
"name": "合并多个 PDF 文件",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-520,
420
],
"parameters": {
"url": "=https://v2018.api2pdf.com/merge",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Merge multiple PDFs together"
},
"typeVersion": 4.2
},
{
"id": "69bfade2-eef2-4eda-873f-23c4102ccbe9",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
620
],
"parameters": {
"color": 5,
"width": 700,
"height": 200,
"content": "## W K Html To Pdf"
},
"typeVersion": 1
},
{
"id": "54e6233c-dd39-4de5-8c71-7e6cc1437163",
"name": "将原始 HTML 转换为 PDF 1",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-520,
660
],
"parameters": {
"url": "=https://v2018.api2pdf.com/wkhtmltopdf/html",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Convert raw HTML to PDF"
},
"typeVersion": 4.2
},
{
"id": "dd97a4ce-df42-4675-93cf-8109a9771567",
"name": "将 URL 转换为 PDF 2",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-320,
660
],
"parameters": {
"url": "=https://v2018.api2pdf.com/wkhtmltopdf/url",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $fromAI('url', 'Url of the page to convert to PDF. Must start with http:// or https://.', 'string') }}"
},
{
"name": "output",
"value": "={{ $fromAI('output', 'Specify output=json to receive a JSON output. Defaults to PDF file.', 'string') }}"
}
]
},
"toolDescription": "Convert URL to PDF\n\nParameters:\n- Query parameters:\n • url (required) - Url of the page to convert to PDF. Must start with http:// or https://.\n • output (optional) - Specify output=json to receive a JSON output. Defaults to PDF file."
},
"typeVersion": 4.2
},
{
"id": "ceba0dad-6e3f-4f94-ac91-c74f533a092d",
"name": "将 URL 转换为 PDF 3",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-120,
660
],
"parameters": {
"url": "=https://v2018.api2pdf.com/wkhtmltopdf/url",
"method": "POST",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Convert URL to PDF"
},
"typeVersion": 4.2
},
{
"id": "0d31e401-d0f2-4e3a-9656-eb910de634b4",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
860
],
"parameters": {
"color": 6,
"width": 300,
"height": 200,
"content": "## Zxing(斑马线)条形码"
},
"typeVersion": 1
},
{
"id": "6717ea20-b643-48c6-8c25-9f7e21e7801e",
"name": "使用 ZXING 生成条形码和 QR 码。",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-520,
900
],
"parameters": {
"url": "=https://v2018.api2pdf.com/zebra",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "format",
"value": "={{ $fromAI('format', 'Most common is CODE_39 or QR_CODE', 'string') }}"
},
{
"name": "value",
"value": "={{ $fromAI('value', 'Specify the text value you want to convert', 'string') }}"
},
{
"name": "showlabel",
"value": "={{ $fromAI('showlabel', 'Show label of text below barcode', 'boolean') }}"
},
{
"name": "height",
"value": "={{ $fromAI('height', 'Height of the barcode generated image', 'number') }}"
},
{
"name": "width",
"value": "={{ $fromAI('width', 'Width of the barcode generated image', 'number') }}"
}
]
},
"toolDescription": "Generate bar codes and QR codes with ZXING.\n\nParameters:\n- Query parameters:\n • format (required) - Most common is CODE_39 or QR_CODE\n • value (required) - Specify the text value you want to convert\n • showlabel (optional) - Show label of text below barcode\n • height (optional) - Height of the barcode generated image\n • width (optional) - Width of the barcode generated image"
},
"typeVersion": 4.2
}
],
"active": false,
"shared": [
{
"role": "workflow:owner",
"project": {
"id": "G5fce9xGuBAsWBXe",
"icon": null,
"name": "David Ashby <david.ashby.lds@gmail.com>",
"type": "personal",
"createdAt": "2025-06-04T02:55:02.013Z",
"updatedAt": "2025-06-04T02:56:01.361Z",
"projectRelations": [
{
"role": "project:personalOwner",
"user": {
"id": "715c1c00-cb48-4712-9a32-f1f4b6db2b30",
"role": "global:owner",
"email": "david.ashby.lds@gmail.com",
"disabled": false,
"lastName": "Ashby",
"settings": {
"npsSurvey": {
"responded": true,
"lastShownAt": 1749357655581
},
"userActivated": true,
"userActivatedAt": 1749075994495,
"easyAIWorkflowOnboarded": true,
"firstSuccessfulWorkflowId": "3N3vVikZb3MckFYm"
},
"createdAt": "2025-06-04T02:55:01.745Z",
"firstName": "David",
"isPending": false,
"updatedAt": "2025-06-08T04:40:58.399Z",
"mfaEnabled": false,
"personalizationAnswers": {
"version": "v4",
"personalization_survey_n8n_version": "1.95.3",
"personalization_survey_submitted_at": "2025-06-04T02:56:07.075Z"
}
},
"userId": "715c1c00-cb48-4712-9a32-f1f4b6db2b30",
"createdAt": "2025-06-04T02:55:02.013Z",
"projectId": "G5fce9xGuBAsWBXe",
"updatedAt": "2025-06-04T02:55:02.013Z"
}
]
},
"createdAt": "2025-07-01T14:38:52.773Z",
"projectId": "G5fce9xGuBAsWBXe",
"updatedAt": "2025-07-01T14:38:52.773Z",
"workflowId": "L7ZgmrqmEBeiLlPk"
}
],
"pinData": {},
"settings": {
"timezone": "America/New_York"
},
"createdAt": "2025-07-01T14:38:52.768Z",
"updatedAt": "2025-07-01T17:11:36.000Z",
"versionId": "8986c82d-cdf4-4eeb-a574-555d65fd4829",
"isArchived": false,
"staticData": null,
"connections": {
"Convert URL to PDF": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert URL to PDF 1": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert URL to PDF 2": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert URL to PDF 3": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert raw HTML to PDF": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert raw HTML to PDF 1": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Merge multiple PDFs together": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Convert office document or image to PDF": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Generate bar codes and QR codes with ZXING.": {
"ai_tool": [
[
{
"node": "Api2Pdf - PDF Generation, Powered by AWS Lambda MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"triggerCount": 0
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文档提取, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
图像审核MCP服务器
基于图像审核API的AI图像裸露检测工具
Http Request Tool
Mcp Trigger
5 节点David Ashby
文档提取
AWS成本和用量报告服务MCP服务器
面向AI代理的AWS成本与用量报告管理
Http Request Tool
Mcp Trigger
11 节点David Ashby
开发运维
CarbonDoomsDay MCP服务器
通过CarbonDoomsDay API为AI代理访问CO2测量数据
Http Request Tool
Mcp Trigger
6 节点David Ashby
工程
大鼠基因组数据库REST API MCP服务器
通过REST API MCP服务器访问大鼠基因组数据库,含100+操作
Http Request Tool
Mcp Trigger
125 节点David Ashby
工程
api.clarify.io MCP服务器
使用Clarify API和AI代理集成的音视频数据搜索与分析
Http Request Tool
Mcp Trigger
27 节点David Ashby
工程
广播与音乐服务 MCP 服务器
BBC 广播与音乐 API 集成中心,用于 AI 助手
Http Request Tool
Mcp Trigger
94 节点David Ashby
工程
工作流信息
难度等级
高级
节点数量17
分类2
节点类型3
作者
David Ashby
@cfomodzA hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord
外部链接
在 n8n.io 查看 →
分享此工作流