Render
PDF Rendering API
Generate clean, print-ready PDF documents directly from a target URL or raw HTML string with custom paper formats and margin controls.
POST/v1/render/pdfCost: 3 Credits
Request Parameters
| Field | Type | Default | Description |
|---|---|---|---|
| url | string | - | Target URL (either url or html required) |
| html | string | - | Raw HTML string to render directly |
| format | string | "A4" | A4, Letter, Legal, Tabloid, A3, A5 |
| landscape | boolean | false | Set paper orientation to landscape |
| print_background | boolean | true | Print background graphics and colors |
Code Example
curl -X POST https://api-rendernest.duckdns.org/v1/render/pdf \
-H "Authorization: Bearer wf_live_xxxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"format": "A4",
"landscape": false,
"print_background": true
}'Response Example
{
"success": true,
"request_id": "req_1725432130_7b6a1c",
"data": {
"url": "https://example.com",
"file_url": "https://api-rendernest.duckdns.org/api/storage/pdfs/ws_demo/req_1725432130_7b6a1c.pdf?expires=...",
"format": "A4",
"file_size_bytes": 48209
}
}