1. PDF Tools
  2. Convert Markdown File to PDF

PDF Tools

Convert Markdown File to PDF

Converts Markdown files into PDFs. Useful for generated reports, documentation exports, and formatted document output.

Uses

Use this task for converting a markdown file to a PDF file.

Basic Usage

loading...

Parameters Explained

files
required
array

An array of markdown file objects to be converted to PDFs.

function
required
string

The pdf_tools function to call, in this case it would be md_to_pdf

Result

The newly created files are returned in files. The same files are returned in attachments, which adds them to the stub's attachments.

editor
        {
  "convert_md_to_pdf": {
    "success": true,
    "payload": {
      "files": [
        {
          "fileuuid": "8142ce6c-f3cd-526c-a5d3-747799ed2b01",
          "filename": "notes.pdf",
          "originalname": "notes.pdf",
          "contentType": "application/pdf",
          "visibility": "private"
        }
      ],
      "attachments": [...]
    }
  }
}