PDF from HTML
What this tool does
This tool creates a PDF document from an HTML source. It helps you convert web content or code snippets into a printable, static file format. The service is designed for users who need to archive or share documents that originate from the web.
When to use it
- Converting an HTML email draft into a PDF for printing.
- Archiving a specific webpage by its address.
- Turning a template preview into a final document.
What to expect
You will receive a link to the generated PDF file. The final document will include the styling (CSS) that was defined in the source.
Limitations
- External fonts and images must be accessible online for them to appear in the PDF.
- Pages that rely heavily on JavaScript may require more time to load correctly.
- Only standard web addresses (HTTP or HTTPS) are supported.
When it fails
- The HTML content is completely empty.
- The source webpage cannot be reached or downloaded.
- The conversion service is temporarily unavailable.
Good to know
- Always provide the full HTML document, including the head section.
- Using a web address is often more reliable than pasting raw HTML code.
- This tool is heavy: provide a public callback URL in the request payload; the result is sent there when the job finishes.
Callback URL required
This is a heavy tool: provide a public callback URL when you run it. The result is POSTed to that URL when the job finishes.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
html | No | <h1>Hello</h1> | Paste the full HTML code you want to convert. This is optional. If left empty, the tool will expect a web address instead. |
Output data
| Field | Description |
|---|---|
result | A secure web link to the generated PDF file. For example, a long web address that starts with https://. |