Gotenberg를 사용하여 HTML에서 PDF 생성
중급
이것은AI분야의자동화 워크플로우로, 6개의 노드를 포함합니다.주로 HttpRequest, ConvertToFile, ExecuteWorkflowTrigger 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Gotenberg를 사용하여 HTML에서 PDF 생성
사전 요구사항
- •대상 API의 인증 정보가 필요할 수 있음
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "e409ea34548a2afe2dffba31130cd1cf2e98ebe2afaeed2a63caf2a0582d1da0"
},
"nodes": [
{
"id": "f0636fec-85ad-47e8-ab43-9a313664be80",
"name": "index.html 생성",
"type": "n8n-nodes-base.convertToFile",
"position": [
100,
20
],
"parameters": {
"options": {
"encoding": "utf8",
"fileName": "index.html"
},
"operation": "toText",
"sourceProperty": "html"
},
"typeVersion": 1.1
},
{
"id": "efcaebc5-e2cc-4af5-a6f2-c75b58496dec",
"name": "Gotenberg로 PDF 변환",
"type": "n8n-nodes-base.httpRequest",
"position": [
320,
20
],
"parameters": {
"url": "http://gotenberg:3000/forms/chromium/convert/html",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "form file",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
},
{
"name": "scale",
"value": "1"
},
{
"name": "metadata",
"value": "={\"Author\":\"IA2S\",\"Copyright\":\"IA2S\",\"CreateDate\":\"{{ $now.format('yyyy-MM-dd') }}\",\"Creator\":\"IA2S\",\"Keywords\":[],\"ModDate\":\"{{ $now.format('yyyy-MM-dd') }}\",\"PDFVersion\":1.7,\"Producer\":\"IA2S\",\"Subject\":\"PDF\",\"Title\":\"IA2S PDF\"}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Gotenberg-Output-Filename",
"value": "={{ $('Create PDF from HTML').last().json.file_name }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "44f89be8-8516-4d8a-a1e4-959c020ca7ae",
"name": "HTML에서 PDF 생성",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-120,
20
],
"parameters": {
"inputSource": "jsonExample",
"jsonExample": "{\n \"html\": \"<h1>Hello World</h1>\",\n \"file_name\": \"my-report-2024\"\n}"
},
"typeVersion": 1.1
},
{
"id": "710d67d4-db4a-4943-9ff7-49af8101443a",
"name": "스티커 메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
260,
-340
],
"parameters": {
"color": 6,
"width": 320,
"height": 540,
"content": "### 🚀 GOTENBERG API CALL\n\nThis node sends the HTML file to your Gotenberg service for conversion.\n\n**IMPORTANT:**\nThe default URL is `http://gotenberg:3000`. This works if n8n and Gotenberg are on the same Docker network. **If your Gotenberg is hosted elsewhere, you must update the URL here.**\n\n**Customization:**\nYou can edit the PDF metadata (Author, Title, etc.) in the `metadata` field under Body Parameters."
},
"typeVersion": 1
},
{
"id": "365e90ba-b4fa-42b1-9236-33b2f8fb1e76",
"name": "스티커 메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
-340
],
"parameters": {
"color": 7,
"width": 440,
"height": 540,
"content": "### ▶️ INPUT & CONFIGURATION\n\nThis workflow requires an input with two fields:\n\n1. `html`: A string containing the full HTML code to be converted.\n2. `file_name`: The desired name for the output file (without the `.pdf` extension).\n\n**Example Input:**\n```json\n{\n \"html\": \"<h1>Hello World</h1>\",\n \"file_name\": \"my-report-2024\"\n}"
},
"typeVersion": 1
},
{
"id": "c8b440bc-fb02-4b77-89c7-62c2bb88d28e",
"name": "스티커 메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-880,
-340
],
"parameters": {
"color": 3,
"width": 440,
"height": 280,
"content": "### 🐳 PREREQUISITE: GOTENBERG SERVICE\n\nTo use this workflow, you need a running Gotenberg instance.\n\nThe easiest way is to add this to your `docker-compose.yml` and restart your stack:\n\n```yaml\n gotenberg:\n image: gotenberg/gotenberg:8\n restart: always"
},
"typeVersion": 1
}
],
"pinData": {
"Create PDF from HTML": [
{
"html": "<h1>Hello World</h1>",
"file_name": "my-report-2024"
}
]
},
"connections": {
"f0636fec-85ad-47e8-ab43-9a313664be80": {
"main": [
[
{
"node": "efcaebc5-e2cc-4af5-a6f2-c75b58496dec",
"type": "main",
"index": 0
}
]
]
},
"44f89be8-8516-4d8a-a1e4-959c020ca7ae": {
"main": [
[
{
"node": "f0636fec-85ad-47e8-ab43-9a313664be80",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
자동 n8n 업데이터 (Docker)
자동 n8n 업데이터 (Docker)
If
Set
Ssh
+
If
Set
Ssh
26 노드Lucas Peyrin
인공지능
이진 MIME 타입 변경-확장자
이진 MIME 타입/확장명을 변경합니다.
Set
Code
Extract From File
+
Set
Code
Extract From File
6 노드Lucas Peyrin
인공지능
API 기본 지식을 배우는 인터랙티브 실습 튜토리얼
API 기본 지식을 교환형 실습 튜토리얼을 통해 배우기
If
Set
Wait
+
If
Set
Wait
28 노드Lucas Peyrin
인공지능
Gemini RAG 파이프라인을 사용하여 문서 전문가 채팅 로봇을 구축
사용법 Gemini RAG 파이프라인을 사용하여 문서 전문가 채팅 로봇 구축
Set
Html
Filter
+
Set
Html
Filter
48 노드Lucas Peyrin
내부 위키
정규 표현식과 AI를 사용하여 숨겨진 웹 API 엔드포인트를 발견
정규 표현식과 인공지능을 사용하여 숨겨진 웹 사이트 API 엔드포인트를 발견
If
Set
Html
+
If
Set
Html
58 노드Yulia
엔지니어링
ComfyUI를 사용하여 AI 미디어 생성: 이미지, 비디오, 3D 및 오디오 브리지
ComfyUI를 사용하여 AI 미디어 생성: 이미지, 비디오, 3D 및 오디오 브리지
If
Set
Code
+
If
Set
Code
51 노드Nielo
디자인
워크플로우 정보
난이도
중급
노드 수6
카테고리1
노드 유형4
저자
Lucas Peyrin
@lucaspeyrinInnovative builder with a passion for crafting automation solutions that solve real-world challenges. From streamlining workflows to driving efficiency, my work empowers teams and individuals to achieve more with less effort. Experienced in developing scalable tools and strategies that deliver results with n8n, supabase and cline.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유