Templates / Convert markdown into branded PDFs with a table of contents using PDFMint

Convert markdown into branded PDFs with a table of contents using PDFMint

Unknown

by Florian Standhartinger ✓ · 2 views · created 2026-09-06 · Document Extraction, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Pdfmint (community).

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Set your document branding (Edit Fields (Set)): sets 6 fields: brandName, accentColour, pageFormat…
  2. Check the request is usable (If): checks a condition and branches into true / false
  3. Check remaining quota (Pdf Mint): usage
  4. Explain what went wrong (Edit Fields (Set)): sets 3 fields: error, message, status_code
  5. Is there quota left? (If): checks a condition and branches into true / false
  6. Return the error as JSON (Respond to Webhook): sends the response back to the webhook caller
  7. Build the cover, contents and body (Code): runs custom JavaScript code
  8. Render the Markdown as PDF (Pdf Mint): pdf
  9. Did the render succeed? (If): checks a condition and branches into true / false
  10. Return the PDF (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Pdfmint (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-pdfmint is verified or supports 3.0 (used in Check remaining quota, Render the Markdown as PDF).

Nodes used (6)

From the author

Quick Overview This workflow turns any Markdown — an AI agent's answer, release notes, a knowledge-base page, a report written in an editor — into a finished, branded PDF and returns it in the same HTTP request. It numbers the headings, builds a table of…

Excerpt from Florian Standhartinger's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.