Multiple rendering engines
Select OpenHTMLtoPDF or Chromium depending on the conversion mode.
Convert HTML files into PDF documents using a REST API.
Choose between OpenHTMLtoPDF and Chromium rendering according to your document requirements.
Select OpenHTMLtoPDF or Chromium depending on the conversion mode.
Define page size, margins, orientation and page breaks using CSS print rules.
Choose the rendering mode that matches your document requirements.
Fast conversion with OpenHTMLtoPDF. Recommended for simple HTML documents, reports and invoices.
Chromium rendering for modern HTML and CSS without external resources. This is the default mode.
Chromium rendering with support for external stylesheets, fonts and images. A Basic license or higher is required for output without the evaluation watermark.
Free users can evaluate ULTRA, but the resulting PDF contains a permanently embedded watermark on every page.
Use CSS print rules to control page size, margins, orientation and pagination. Without an @page rule, A4 pages with 10 mm margins are applied automatically.
@page {
size: A4;
margin: 20mm;
}
body {
font-family: Arial, sans-serif;
}
h1 {
color: #1565c0;
}
Upload an HTML file using multipart/form-data, select a conversion mode and authenticate using a JWT Bearer Token.
HTTP method
POST /api/v1/convert/file/html-to-pdf
Request parameters
The API returns HTTP 200 with an application/pdf response containing the generated document.
Content-Disposition: attachment; filename="document.pdf"
Response headers also identify the rendering engine, its version, the selected mode and processing time.