cURL
curl --request POST \ --url https://api.iyzpdf.com/v1/convert/markdown-to-pdf \ --header "X-API-Key: $IYZPDF_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "markdown": "# Release Notes\n\n- New PDF routes\n- Updated credit tracking" }' \ --output release-notes.pdf
{ "fileName": "output.pdf", "size": 183240, "creditsUsed": 1, "creditsRemaining": 49, "contentType": "application/pdf" }
Render inline Markdown or uploaded Markdown files into PDF.
1
100 MB
markdown.pdf
Send your server-side API key in the X-API-Key header.
Show child attributes
{ "format": "A4", "marginTop": "2cm", "marginBottom": "2cm", "printBackground": true}
Successful response.