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": "PRAGMAS - Generate LaTeX PDF",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "pragmas/generate-latex-pdf",
"responseMode": "lastNode",
"options": {}
},
"id": "1",
"name": "PDF Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
240,
300
]
},
{
"parameters": {
"jsCode": "const body = $json.body ?? {};\nconst query = $json.query ?? {};\nconst company = String(body.company ?? query.company ?? $json.company ?? '').trim();\nif (!company) {\n throw new Error('company is required');\n}\nconst shellQuote = (value) => JSON.stringify(String(value)).replace(/[`$]/g, '\\\\$&');\nreturn [{\n json: {\n company,\n command: ['python3 /workspace/scripts/dashboard/generate_latex_pdf.py', '--vault-path', '/workspace/obsidian-vault', '--company', company].map((part, index) => index === 0 ? part : shellQuote(part)).join(' ')\n }\n}];"
},
"id": "2",
"name": "Prepare Request",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
500,
300
]
},
{
"parameters": {
"command": "={{$json.command}}"
},
"id": "3",
"name": "Generate PDF",
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
760,
300
]
}
],
"connections": {
"PDF Webhook": {
"main": [
[
{
"node": "Prepare Request",
"type": "main",
"index": 0
}
]
]
},
"Prepare Request": {
"main": [
[
{
"node": "Generate PDF",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "pragmas-generate-latex-pdf-v2",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "pragmas-generate-latex-pdf"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
PRAGMAS - Generate LaTeX PDF. Uses executeCommand. Webhook trigger; 3 nodes.
Source: https://github.com/pragmasg/oros/blob/30d34ca64e9d5769a502747bfe15b88a7fe8e679/n8n-workflows/generate-latex-pdf.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.
TestFixer CI Integration. Uses executeCommand, httpRequest, slack. Webhook trigger; 16 nodes.
Use cases Auto-generate subtitles for training or educational videos Translate videos into multiple languages for global reach Create accessibility-friendly content with minimal effort Build a backend
PRAGMAS - Main Analysis. Uses httpRequest, executeCommand. Webhook trigger; 6 nodes.
MallanooSploit. Uses openAi, executeCommand, httpRequest. Webhook trigger; 44 nodes.
Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready.