Skip to content
POST /api/v1/html-to-pdf

HTML to PDF Converter

Paste HTML content to convert it to a downloadable PDF. The converter supports full CSS styling, custom fonts, tables, images, and page layout. Useful for generating invoices, reports, certificates, or any document from HTML templates.

string required

Up to 512 KB. Rendered offline: put CSS in a style block and images in as data URIs, remote files don't load. Scripts are removed

advanced options
string

document renders your HTML as it is: your fonts and margins, @page size, as many pages as it needs. single_page (the default) fits it into one A4 page in Arial and cuts off what doesn't fit

X-Sandbox-Remaining: - get an api key

returns

body
The rendered PDF, served as application/pdf.
response awaiting request sending
Fill in the fields and send a request. The response lands here.

Run it from your code

A temporary key takes one request and lasts seven days at 20 calls a day. Register and it becomes 75 a day, still free.

$ curl -sX POST "https://apixies.io/api/v1/html-to-pdf" \
    -H "X-API-Key: $APIXIES_KEY" \
    -H "Content-Type: application/json" \
    -d '{"html":"..."}'

questions

What CSS features are supported?

Most modern CSS is supported including flexbox, grid, custom fonts via @font-face, media queries, and CSS variables. The rendering engine is Chromium-based, so it matches how Chrome renders the page.

Is there a size limit on the HTML input?

Yes, the API accepts up to 2MB of HTML content. For very large documents, consider breaking them into sections or using URL-based conversion.

cookies

We use analytics cookies to see how the site gets used. Nothing loads until you accept. Privacy policy