Skip to content
Browse all functions

Markdown to PDF

files/markdown2pdf

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 (no body)

Parameters

This function has no parameters.

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 |"}'

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