anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that turns Markdown into a branded PDF. You send Markdown and a title to a web address, and PDFMint renders a file with a cover, numbered headings and a contents page that comes back as the reply.
Branded PDF with contents page from Markdown is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Web request
It starts when something sends a POST request to the webhook. The request carries:
The PDF itself as the reply to your request, or a JSON message that says why none was made
What you need before you start.
PDF maker
Renders the Markdown as a PDF and reports how many credits are left.
NeedsPDFMint API key and the community node n8n-nodes-pdfmint
Checked by Mindket on 13 Nov 2026
This n8n workflow turns Markdown into a finished PDF. You send a POST request with Markdown, a title and an optional author. The workflow numbers the headings, builds a cover and a contents page, and has PDFMint render the file. The reply to your request is the PDF. Eleven nodes do the work, plus nine sticky notes.
Teams that hold content as Markdown and need a tidy PDF back from one request. An agent that wrote a report can call it as well. It is made for people who use n8n and have a PDFMint account. Skip it for exact print layouts, since the styling is a short stylesheet.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Turn release notes into a PDF | A developer posts the changelog and gets a PDF with a contents page. |
| Operations | Analysts | Send a weekly report as a file | A scheduled job posts the report as Markdown and gets a branded PDF back. |
| Support | Support leads | Export a help article for offline use | A lead posts a knowledge-base article and attaches the PDF to an email. |
| AI work | Agent builders | Let an agent hand over a document | An agent posts its answer as Markdown and gives the user the PDF. |
You need some n8n: import a file, install one community node and add a PDFMint key.
Any n8n that can receive web requests and reach PDFMint will run it. A caller only has to send an HTTP POST.
Return the PDF with a Gmail, Google Drive or S3 nodeDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is one community node, one credential and the branding fields.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own, able to receive web requests |
| PDFMint node | The community node n8n-nodes-pdfmint |
| PDFMint | An account and an API key, and the free plan covers 10 documents a month |
workflow.json.Check remaining quota and Render the Markdown as PDF.Set your document branding, change the brand name, accent colour, page format, contents switch and watermark..pdf file and open it.Send a POST request to the webhook with a JSON body that holds markdown, title and, if you like, author. Save the reply as a PDF. A request with no Markdown or no title gets a readable 422 reply.
| To change | Where |
|---|---|
| Brand name, colour and page format | Set your document branding |
| Contents page on or off | The addTableOfContents field of that node |
| A DRAFT stamp | The draftWatermark field of that node |
| Margins, page numbers and header | The options of Render the Markdown as PDF |
| The cover and the heading numbers | The code in Build the cover, contents and body |
You post release notes titled Release 4.2 with five second-level headings.
You get a PDF with a cover that shows the title, the date, the word count and the reading time, then a contents page, numbered sections and page numbers. Open it before you send it on.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A webhook is a web address that starts a workflow when something calls it. Markdown is plain text with marks such as ## for a heading. PDFMint is a service that turns Markdown or HTML into a PDF.
For experts. Receive the Markdown document feeds Set your document branding, which also keeps the request body in a field named request. Two checks follow, one for the request and one for the account credits. Build the cover, contents and body is the one Code node. Render the Markdown as PDF continues on failure, so Did the render succeed? decides between the two answers.
| Node | What it does | What to know |
|---|---|---|
Check the request is usable | Needs a Markdown text and a title | An empty one goes to the error answer |
Check remaining quota | Reads the PDFMint account | It costs no credit |
Build the cover, contents and body | Numbers the headings and writes the contents, cover, header and CSS | It skips headings inside code blocks |
Render the Markdown as PDF | Makes the PDF at PDFMint | It continues on failure |
Did the render succeed? | Looks for an error in the reply | A failure goes to the error answer |
Return the error as JSON | Answers with a status and a reason | 422 for a bad request or no credits, 500 for a failed render |
The webhook has no sign-in, and only PDFMint can render the file.
An n8n workflow that turns Markdown into a finished PDF. You send Markdown and a title to a web address. The workflow numbers the
headings, adds a cover and a contents page, has PDFMint render the file, and answers with the PDF itself.
workflow.json: the workflow as n8n exports it, 20 nodes, nine of them sticky notes. It holds no credential. One note is aREADME.md: these notes.n8n-nodes-pdfmint. PDFMint's docs call it a verified node, so n8n Cloud can add it from the nodesworkflow.json.Check remaining quota and in Render the Markdown as PDF.Set your document branding and change the brand name, the accent colour, the page format, the contents switch and themarkdown,title and, if you like, author..pdf file and open it.A request from a terminal looks like this, with the address of your own webhook:
curl -X POST "<YOUR_WEBHOOK_URL>" -H "Content-Type: application/json" -d '{"markdown":"## Intro\nHello","title":"Test"}' -o test.pdf
Receive the Markdown document takes the POST at the path markdown-to-pdf and waits for a node to answer it.Set your document branding holds the brand name, accent colour, page format, contents switch and watermark. It also keeps therequest.Check the request is usable needs both a markdown and a title that are not empty. If one is missing, the run goes toExplain what went wrong.Check remaining quota asks PDFMint for the credits left, and Is there quota left? goes on only when the number is above zero.Build the cover, contents and body does the work in one Code node. It numbers every second and third level heading and skipsRender the Markdown as PDF sends the result to PDFMint, with the page format, 20 mm margins, page numbers in the form Page 1 of 3,Did the render succeed? checks the reply for an error. Return the PDF answers the request with the file. OtherwiseExplain what went wrong and Return the error as JSON answer with a status code and a reason.Set your document branding.Build the cover, contents and body.Render the Markdown as PDF.Return the PDF with a Gmail, Google Drive or S3 node.#123a5f, or the code falls back to that colour.NOTICE.md 702 B README.md 5 KB workflow.json 20 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
perplexity-ai · Kit
Picks the best option for a decision from text and images, such as which team should handle a request, with a probability for each choice, for developers who b…
numind · Kit
Reads documents as text or images and fills a JSON template with the fields you ask for, or converts the pages to Markdown. A 4B model for teams that process s…
nace-ai · Kit
Scores yes or no, multiple choice and rating questions about a document in one pass, with a probability for every option. An 8B decision model from Nace.AI tha…