HTML to PDF – Create PDF from HTML or URL
HTML to PDF – Create PDF from HTML or URL
Input
Expects a json body
{
"html": "<h1 style=\"font-family:sans-serif\">Offer 2026-117</h1><p>Thank you for your request.</p>",
"format": "A4"
}Output · HTTP 200
Response
{
"statusCode": 200
}Show curl command
curl -X POST 'https://api.1001fx.com/files/html2pdf' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-H 'Content-Type: application/json' \
-d '{"html":"<h1 style=\"font-family:sans-serif\">Offer 2026-117</h1><p>Thank you for your request.</p>","format":"A4"}'