Create PDF or DOCX documents from HTML or markdown. HTML input preferred (from composed output.html).
Converts HTML or markdown to formatted PDF or DOCX documents using pandoc.
Primary input: HTML (from composed output.html — preserves styling, tables, asset references). Fallback input: markdown (for direct usage or when HTML not available).
{
"html": "<html>..composed output.html content..</html>",
"title": "Document Title (optional)"
}
OR (fallback):
{
"markdown": "# Heading\n\nBody text...",
"title": "Document Title (optional)"
}
| Field | Type | Required | Description |
|---|
html | string | preferred | Composed HTML content (from output.html) |
markdown | string | fallback | Markdown content (if no HTML available) |
title | string | no | Document title (appears in metadata) |
pdf — Rendered via pdflatex. Best for sharing and printing.docx — Microsoft Word format. Best when recipient needs to edit.$...$ and $$...$$