Markdown-to-PDF API for document generation workflows

Use Nutrient DWS to convert Markdown content into styled PDF documents. Start with a cloud Markdown-to-PDF API built for report generation, documentation publishing, and automated document workflows — with built-in templates, custom CSS, and syntax highlighting.

Markdown to styled PDF in one call

Send Markdown content and receive a production-ready PDF. Choose from 11 built-in templates, or provide custom CSS and HTML templates for full control over the output.

CommonMark and GFM support

Full CommonMark compliance with GitHub Flavored Markdown extensions: tables, task lists, alerts, footnotes, syntax-highlighted code blocks, and more.

Flexible input, consistent output

Send JSON with inline Markdown, upload raw .md files, or use multipart for Markdown with images and custom fonts. Control page layout, orientation, and margins.


Try it out

This example will convert inline Markdown to a styled PDF using the default template.


Try it out in three steps

  1. Replace your_api_key_here with your Nutrient API key.
  2. Run the code from your terminal or project folder.
  3. Open result.pdf to view the generated document.
curl -X POST https://api.nutrient.io/processor/md_to_pdf \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-o result.pdf \
--fail \
-d '{
"markdown": "# Hello World\n\nThis is **bold** and *italic*.\n\n- Item one\n- Item two",
"template": "built-in:default"
}'

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →

Getting started

Implementation options

The Markdown-to-PDF API supports built-in templates, custom CSS overrides, uploaded images and fonts, and full HTML template control. Follow these steps in the guide to go from a basic conversion to a fully customized document.

1 — Templates

Built-in templates

2 — Styling

Custom CSS and layout

3 — Assets

Images, fonts, and assets

4 — Customization

Custom HTML templates

Security is our top priority

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.