HTML capture
Capture public HTML and web pages as PDF.
The HTML-to-PDF API supports browser-rendered capture settings created in Batch 8, including viewport, wait strategy, selector interactions, scoped cookies, and screenshot preview when enabled by admin settings.
Endpoint
Use POST /v1/convert/html-to-pdf for URL or HTML capture jobs. Local HTML upload conversion remains separate from public URL capture.
Security rules
Only public HTTP/HTTPS targets are allowed. Localhost, private IPs, cloud metadata addresses, file/data/chrome protocols, and unsafe redirects are blocked.
Session cookies
Cookies must be scoped to the target host or a safe parent domain and are never logged. A fresh browser context is used for each job.
Interaction controls
When enabled, you can dismiss cookie banners, hide sticky widgets, wait for selectors, scroll before capture, and generate a screenshot preview.
curl -X POST https://fileza.ai/v1/convert/html-to-pdf \
-H "Authorization: Bearer fpe_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","renderMode":"browser","pdf":{"format":"A4","printBackground":true}}'
Need help?
Include your request ID, endpoint, timestamp, and account email when contacting support. Never send raw API keys, provider secrets, OAuth tokens, or signed download URLs.
Contact API support