Skip to content
Browse all functions

Markdown to PDF

files/markdown2pdf

markdown2pdf (Markdown to PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/markdown2pdf, 5 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

5 credits per callHTTP APIMake

Turns Markdown (headings, lists, tables, code, images) into a styled PDF. Extra CSS, paper format, orientation and margins can be set.

Endpoint

POSThttps://api.1001fx.com/files/markdown2pdf
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • markdownstringrequired

    Markdown text (GitHub flavored: tables, lists, code).

    Example:
    # Meeting notes - Budget approved - Launch on **15 November** | Task | Owner | |---|---| | Slides | Anna |
  • cssstringoptional

    Optional extra CSS, e.g. body{font-size:12pt}.

  • formatenumoptional

    Default A4.

    Values:
    A3
    A4
    A5
    Letter
    Legal
    Tabloid
    Default:
    A4
  • landscapebooleanoptional
    Default:
    false
  • marginstringoptional

    CSS length for all sides, e.g. 1cm (default), 10mm, 0.

    Default:
    1cm
  • printBackgroundbooleanoptional

    Background colors and images (default true).

    Default:
    true

Examples

Markdown to PDF

Markdown to PDF

Input

Expects a json body
{
  "markdown": "# Meeting notes\n\n- Budget approved\n- Launch on **15 November**\n\n| Task | Owner |\n|---|---|\n| Slides | Anna |"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/markdown2pdf' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"markdown":"# Meeting notes\n\n- Budget approved\n- Launch on **15 November**\n\n| Task | Owner |\n|---|---|\n| Slides | Anna |"}'

Step-by-step guides

Try markdown2pdf now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created