markdown-to-styled-pdflisted
Install: claude install-skill iterationlayer/skills
# Convert Markdown to Styled PDF
Content teams and publishing platforms use this recipe to produce PDF documents from Markdown source files. Define page layout, typography, and branding — the API renders the Markdown into a polished PDF with headers, footers, and page numbers.
## APIs Used
Document Generation (2 credits/request)
## Prerequisites
You need an Iteration Layer API key. Get one at [platform.iterationlayer.com](https://platform.iterationlayer.com) — free trial credits included, no credit card required.
For full integration guidance (SDKs, auth, MCP, error handling), see the [Iteration Layer Integration Guide](https://iterationlayer.com/SKILL.md).
## Implementation
```bash
curl -X POST https://api.iterationlayer.com/document-generation/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"format": "pdf",
"document": {
"metadata": {
"title": "Project Proposal",
"author": "Engineering Team"
},
"page": {
"size": { "preset": "A4" },
"margins": {
"top_in_pt": 72,
"right_in_pt": 72,
"bottom_in_pt": 72,
"left_in_pt": 72
}
},
"styles": {
"text": {
"font_family": "Helvetica",
"font_size_in_pt": 12.0,
"line_height": 1.5,
"color": "#1A1A1A"
},
"headline": {
"font_family": "Helvetica",
"font_size_in_pt": 20.0,