The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "PDF to TXT Translator",
"nodes": [
{
"parameters": {
"path": "pdf-upload",
"method": "POST",
"responseMode": "lastNode"
},
"id": "webhook-1",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
250,
300
]
},
{
"parameters": {
"filePath": "=/files/{{$json[\"body\"][\"fileName\"]}}",
"binaryPropertyName": "data"
},
"id": "read-file-1",
"name": "Read Binary File",
"type": "n8n-nodes-base.readBinaryFile",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"options": {},
"binaryPropertyName": "data",
"mode": "text"
},
"id": "pdf-extract-1",
"name": "PDF Extract Text",
"type": "n8n-nodes-base.pdfExtract",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"functionCode": "const text = $json[\"text\"];\nconst blockSize = 3000;\nlet blocks = [];\nfor (let i = 0; i < text.length; i += blockSize) {\n blocks.push({ json: { text: text.slice(i, i + blockSize) } });\n}\nreturn blocks;"
},
"id": "code-1",
"name": "Split Text",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
850,
300
]
},
{
"parameters": {
"model": "gpt-3.5-turbo",
"temperature": 0.7,
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": "Translate the following text to Brazilian Portuguese:\n{{$json[\"text\"]}}"
}
]
},
"id": "openai-1",
"name": "GPT-3.5 Translate",
"type": "n8n-nodes-base.openAi",
"typeVersion": 1,
"position": [
1050,
300
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"functionCode": "let fullText = items.map(i => i.json.translatedText).join(' ');\nreturn [{ json: { fullText } }];"
},
"id": "code-2",
"name": "Combine Translations",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
1250,
300
]
},
{
"parameters": {
"fileName": "/files/traduzido.txt",
"binaryData": false,
"dataPropertyName": "fullText"
},
"id": "write-file-1",
"name": "Write TXT File",
"type": "n8n-nodes-base.writeBinaryFile",
"typeVersion": 1,
"position": [
1450,
300
]
},
{
"parameters": {
"responseCode": 200,
"responseMode": "lastNode",
"responseData": "file",
"options": {}
},
"id": "respond-webhook-1",
"name": "Respond Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
1650,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Read Binary File",
"type": "main",
"index": 0
}
]
]
},
"Read Binary File": {
"main": [
[
{
"node": "PDF Extract Text",
"type": "main",
"index": 0
}
]
]
},
"PDF Extract Text": {
"main": [
[
{
"node": "Split Text",
"type": "main",
"index": 0
}
]
]
},
"Split Text": {
"main": [
[
{
"node": "GPT-3.5 Translate",
"type": "main",
"index": 0
}
]
]
},
"GPT-3.5 Translate": {
"main": [
[
{
"node": "Combine Translations",
"type": "main",
"index": 0
}
]
]
},
"Combine Translations": {
"main": [
[
{
"node": "Write TXT File",
"type": "main",
"index": 0
}
]
]
},
"Write TXT File": {
"main": [
[
{
"node": "Respond Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2025-10-08T00:00:00.000Z",
"versionId": "tradutor-pdf-v1",
"meta": {
"templateCredsSetupCompleted": true
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
PDF to TXT Translator. Uses readBinaryFile, pdfExtract, openAi, writeBinaryFile. Webhook trigger; 8 nodes.
Source: https://github.com/PeSzpak/n8n-docker/blob/b25fabc3eca595c3ead0b8a0ebf2e871fa26018a/workflows/TradutorPDFGPT.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Anyone who wants to automatically aggregate their invoices or receipts. Main beneficiaries: small business owners and freelancers. Creates a folder in Google Drive for uploading invoices and receipts.
Automatically classifies incoming cold email replies as HOT, WARM, or COLD using AI and sends priority Telegram notifications with auto-acknowledgment for fast response times.
Use Case: Analyze images with multiple subjects. In this use case I have a bookshelf and am extracting and verifying book titles/authors from a bookshelf photo.
Paperless-ngx Document Chat. Uses httpRequest, extractPdfContent, openAi. Webhook trigger; 9 nodes.
Estimate material price and total cost for grouped BIM/CAD elements using an LLM-driven analysis. The workflow accepts an existing XLSX (from your model) or, if missing, can trigger a local RvtExporte