Capture a live webpage and convert it to PDF. Send a URL to the /v1/convert/url endpoint and get a rendered PDF back. JavaScript is disabled for security (SSRF protection), and private/internal URLs are blocked.
curl -X POST https://docfast.dev/v1/convert/url \
+ -H "Authorization: Bearer YOUR_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{"url": "https://example.com"}' \
+ --output page.pdf
+ curl -X POST https://docfast.dev/v1/convert/url \
+ -H "Authorization: Bearer YOUR_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "url": "https://example.com",
+ "format": "A4",
+ "margin": { "top": "20mm", "bottom": "20mm" },
+ "scale": 0.8,
+ "printBackground": true
+ }' \
+ --output page.pdf
+ Capture a live webpage and convert it to PDF. Send a URL to the /v1/convert/url endpoint and get a rendered PDF back. JavaScript is disabled for security (SSRF protection), and private/internal URLs are blocked.
curl -X POST https://docfast.dev/v1/convert/url \
+ -H "Authorization: Bearer YOUR_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{"url": "https://example.com"}' \
+ --output page.pdf
+ curl -X POST https://docfast.dev/v1/convert/url \
+ -H "Authorization: Bearer YOUR_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "url": "https://example.com",
+ "format": "A4",
+ "margin": { "top": "20mm", "bottom": "20mm" },
+ "scale": 0.8,
+ "printBackground": true
+ }' \
+ --output page.pdf
+