Generate your first PDF in minutes
curl -X POST 'https://vortexpdf.com/api/v1/renderers/pdf' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "parts": ["<h1>Hello World</h1><p>This is my first PDF!</p>"] }' \ --output hello-world.pdf
curl -X POST 'https://vortexpdf.com/api/v1/renderers/pdf' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "parts": ["https://example.com"] }' \ --output example.pdf
curl -X POST 'https://vortexpdf.com/api/v1/renderers/pdf' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "parts": ["<h1>Custom PDF</h1><p>With custom settings</p>"], "size": "letter", "orientation": "landscape", "margin": { "top": 10, "right": 10, "bottom": 10, "left": 10, "unit": "mm" }, "header_template": "<div style=\"text-align: center; width: 100%; font-size: 10px;\"><span class=\"date\"></span></div>", "footer_template": "<div style=\"text-align: center; width: 100%; font-size: 10px;\">Page <span class=\"pageNumber\"></span> of <span class=\"totalPages\"></span></div>", "render_header_footer": true }' \ --output custom.pdf