AutomationFlowsAI & RAG › Generate LaTeX PDF via Webhook

Generate LaTeX PDF via Webhook

Original n8n title: Pragmas - Generate Latex PDF

PRAGMAS - Generate LaTeX PDF. Uses executeCommand. Webhook trigger; 3 nodes.

Webhook trigger★★★★☆ complexity3 nodesExecute Command
AI & RAG Trigger: Webhook Nodes: 3 Complexity: ★★★★☆ Added:

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 →

Download .json
{
  "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"
}
Pro

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 →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

TestFixer CI Integration. Uses executeCommand, httpRequest, slack. Webhook trigger; 16 nodes.

Execute Command, HTTP Request, Slack
AI & RAG

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

HTTP Request, Execute Command, Read Binary File +2
AI & RAG

PRAGMAS - Main Analysis. Uses httpRequest, executeCommand. Webhook trigger; 6 nodes.

HTTP Request, Execute Command
AI & RAG

MallanooSploit. Uses openAi, executeCommand, httpRequest. Webhook trigger; 44 nodes.

OpenAI, Execute Command, HTTP Request
AI & RAG

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready.

OpenAI, HTTP Request, Execute Command +1