
Translate English PDFs to Any 2 Languages with Cost Tracking via Google Translate & ConvertAPI
Description
Categories
🤖 AI & Machine Learning
Nodes Used
n8n-nodes-base.ifn8n-nodes-base.ifn8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.coden8n-nodes-base.code
PriceFree
Views0
Last Updated11/28/2025
workflow.json
{
"meta": {
"instanceId": "809a16cafde82a698679760d52c3455d4e68868a54e24a00ed0f5ee74b3d4e70"
},
"name": "Translate English PDFs to Any 2 Languages with Cost Tracking via Google Translate & ConvertAPI",
"tags": [],
"nodes": [
{
"id": "84d25cf7-0924-4ebe-883d-639c72cd1074",
"name": "Process Form Data",
"type": "n8n-nodes-base.code",
"position": [
912,
608
],
"parameters": {},
"typeVersion": 2
},
{
"id": "425a2c9e-28b7-453e-bd75-56bb401c6aba",
"name": "Extract Text from PDF",
"type": "n8n-nodes-base.extractFromFile",
"position": [
1072,
512
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f85ee6e8-faef-4b4d-8ca3-4ac5bbd52320",
"name": "Convert to HTML",
"type": "n8n-nodes-base.code",
"notes": "Converts extracted PDF text to properly formatted HTML with CSS styling",
"position": [
1232,
576
],
"parameters": {},
"typeVersion": 2
},
{
"id": "efb29983-a121-46d0-a48c-a2625fe8f4e6",
"name": "Translate to Language 1",
"type": "n8n-nodes-base.googleTranslate",
"notes": "Translates HTML content preserving all tags and structure\n\nNOTE: CONNECT GOOGLE SERVICE ACCOUNT CREDENTIAL IN N8N (TRANSLATION API ENABLED).",
"position": [
1728,
528
],
"parameters": {},
"typeVersion": 2
},
{
"id": "68028505-61e2-4f82-a785-30f666fd3fe8",
"name": "Translate to Language 2",
"type": "n8n-nodes-base.googleTranslate",
"notes": "Translates HTML content preserving all tags and structure\n\nNOTE: CONNECT GOOGLE SERVICE ACCOUNT CREDENTIAL IN N8N (TRANSLATION API ENABLED).",
"position": [
1728,
848
],
"parameters": {},
"typeVersion": 2
},
{
"id": "7dac2827-1ee8-464d-9945-01d4c123c477",
"name": "Prepare HTML 1",
"type": "n8n-nodes-base.code",
"notes": "Prepares HTML as binary for PDF conversion",
"position": [
1920,
528
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e2bd2c75-7743-4831-80c1-2ef6b6c916f8",
"name": "Prepare HTML 2",
"type": "n8n-nodes-base.code",
"notes": "Prepares HTML as binary for PDF conversion",
"position": [
1904,
848
],
"parameters": {},
"typeVersion": 2
},
{
"id": "562f9f43-d868-4652-a689-16df25d66b1a",
"name": "Convert HTML to PDF 1",
"type": "n8n-nodes-base.httpRequest",
"notes": "Converts HTML to PDF using ConvertAPI with proper margins\n\nNOTE: ADD ConvertAPI SECRET (QUERY PARAM \"Secret\" OR N8N CREDENTIAL).",
"position": [
2096,
528
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "2491a364-37c6-4390-a304-d2ac48536f90",
"name": "Convert HTML to PDF 2",
"type": "n8n-nodes-base.httpRequest",
"notes": "Converts HTML to PDF using ConvertAPI with proper margins\n\nNOTE: ADD ConvertAPI SECRET (QUERY PARAM \"Secret\" OR N8N CREDENTIAL).",
"position": [
2080,
848
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "bab15443-0e12-40fa-85ff-24f18180a48e",
"name": "Finalize PDF 1",
"type": "n8n-nodes-base.code",
"position": [
2272,
528
],
"parameters": {},
"typeVersion": 2
},
{
"id": "421091ed-29bd-499f-aa47-1c306caf9161",
"name": "Finalize PDF 2",
"type": "n8n-nodes-base.code",
"position": [
2256,
848
],
"parameters": {},
"typeVersion": 2
},
{
"id": "b183bf53-8fd6-4488-b5ca-55075775e7c6",
"name": "Merge Documents",
"type": "n8n-nodes-base.merge",
"position": [
2544,
672
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ecbacf3e-c613-4fc2-9429-e71980a34753",
"name": "Prepare Email",
"type": "n8n-nodes-base.code",
"position": [
2688,
672
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e3761fab-df0d-406a-b54a-d503ee3b6840",
"name": "Cost – Build record",
"type": "n8n-nodes-base.code",
"position": [
2912,
592
],
"parameters": {},
"typeVersion": 2
},
{
"id": "5cd1777b-599f-4040-9e65-ec37d36537c5",
"name": "Document Translation Request (Form Trigger)",
"type": "n8n-nodes-base.formTrigger",
"position": [
752,
496
],
"webhookId": "b85fd226-cb4c-4f96-8086-3bd73111a707",
"parameters": {},
"typeVersion": 1
},
{
"id": "0cbf5e13-6156-4050-bc47-b3acc07fda06",
"name": "Has 2nd Language?",
"type": "n8n-nodes-base.if",
"position": [
1456,
864
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "0023f0fb-aa0a-4ddd-a935-f435930fb03b",
"name": "Data Table",
"type": "n8n-nodes-base.dataTable",
"position": [
3168,
320
],
"parameters": {},
"typeVersion": 1
},
{
"id": "dcfd1c74-3723-4a88-b12e-4ceebf397ed5",
"name": "Send Two Attachments?",
"type": "n8n-nodes-base.if",
"position": [
3168,
880
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "a257e7f0-f200-4293-95d9-9ca4c8cb35e3",
"name": "Send Email (2 PDFs)",
"type": "n8n-nodes-base.gmail",
"notes": "NOTE: CONNECT GMAIL OAUTH2 (SEND) CREDENTIAL IN N8N.",
"position": [
3376,
784
],
"webhookId": "a4c992f4-4a5c-49c8-a77b-2c2ff31917c6",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "1dfb3ac3-b956-4d63-96cd-6d995b8f5548",
"name": "Send Email(1 PDF)",
"type": "n8n-nodes-base.gmail",
"notes": "NOTE: CONNECT GMAIL OAUTH2 (SEND) CREDENTIAL IN N8N.",
"position": [
3376,
976
],
"webhookId": "9dc31f1c-fbb0-4fc1-bdc0-bb8e5623c58c",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "7af41fc2-c51d-43df-9c92-33129ef85885",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
704,
240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f8cd3ff1-bc00-4788-9fce-94fc48413a02",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1408,
240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "23a68b2b-e731-4c95-86cb-bf4305a97987",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1616,
240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9269b7bb-3d17-413d-9fb6-c43675df1b46",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1648,
416
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "1a6e129a-06d4-4f03-bc1c-9e1522bcf2a2",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1648,
752
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "69474086-e3c6-4f21-8c8d-41cecc673021",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "662ba0e4-6656-4990-9631-a6ccab669141",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2832,
240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "55580d75-50d6-4d74-b09f-983e87a0c98b",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
2832,
768
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8229bf8f-bf83-443d-8477-9f985200a83b",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"connections": {
"Prepare Email": {
"main": [
[
{
"node": "Cost – Build record",
"type": "main",
"index": 0
}
]
]
},
"Finalize PDF 1": {
"main": [
[
{
"node": "Merge Documents",
"type": "main",
"index": 0
}
]
]
},
"Finalize PDF 2": {
"main": [
[
{
"node": "Merge Documents",
"type": "main",
"index": 1
}
]
]
},
"Prepare HTML 1": {
"main": [
[
{
"node": "Convert HTML to PDF 1",
"type": "main",
"index": 0
}
]
]
},
"Prepare HTML 2": {
"main": [
[
{
"node": "Convert HTML to PDF 2",
"type": "main",
"index": 0
}
]
]
},
"Convert to HTML": {
"main": [
[
{
"node": "Translate to Language 1",
"type": "main",
"index": 0
},
{
"node": "Has 2nd Language?",
"type": "main",
"index": 0
}
]
]
},
"Merge Documents": {
"main": [
[
{
"node": "Prepare Email",
"type": "main",
"index": 0
}
]
]
},
"Has 2nd Language?": {
"main": [
[
{
"node": "Translate to Language 2",
"type": "main",
"index": 0
}
]
]
},
"Process Form Data": {
"main": [
[
{
"node": "Extract Text from PDF",
"type": "main",
"index": 0
}
]
]
},
"Convert HTML to PDF 1": {
"main": [
[
{
"node": "Finalize PDF 1",
"type": "main",
"index": 0
}
]
]
},
"Convert HTML to PDF 2": {
"main": [
[
{
"node": "Finalize PDF 2",
"type": "main",
"index": 0
}
]
]
},
"Cost – Build record": {
"main": [
[
{
"node": "Data Table",
"type": "main",
"index": 0
},
{
"node": "Send Two Attachments?",
"type": "main",
"index": 0
}
]
]
},
"Extract Text from PDF": {
"main": [
[
{
"node": "Convert to HTML",
"type": "main",
"index": 0
}
]
]
},
"Send Two Attachments?": {
"main": [
[
{
"node": "Send Email (2 PDFs)",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Email(1 PDF)",
"type": "main",
"index": 0
}
]
]
},
"Translate to Language 1": {
"main": [
[
{
"node": "Prepare HTML 1",
"type": "main",
"index": 0
}
]
]
},
"Translate to Language 2": {
"main": [
[
{
"node": "Prepare HTML 2",
"type": "main",
"index": 0
}
]
]
},
"Document Translation Request (Form Trigger)": {
"main": [
[
{
"node": "Process Form Data",
"type": "main",
"index": 0
}
]
]
}
}
}