Convert HTML content from n8n workflows to structured, responsive PDFs
POST /convert
{
"html": "Your HTML content here",
"filename": "output.pdf" // Optional
}
A PDF file with the converted content
curl -X POST \
https://htmlpdfconverter.srv925302.hstgr.cloud/convert \
-H "Content-Type: application/json" \
-d '{"html": "<h1>Hello, World!</h1>", "filename": "example.pdf"}' \
--output example.pdf
To integrate with n8n:
https://htmlpdfconverter.srv925302.hstgr.cloud/convertContent-Type: application/json{
"html": "Your n8n variable with HTML content",
"filename": "output.pdf"
}
Note: In n8n, you would typically use expression syntax to reference data from previous nodes