One endpoint for HTML to PDF. Sign in, create a key, POST your document.
curl -X POST "https://docgen.novtopro.com/api/v1/pdf" \
-H "Authorization: Bearer dk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Invoice</h1>","engine":"tiger"}' -o out.pdfEvery convert call needs an API key from your dashboard. Pass it as a Bearer token.
Authorization: Bearer dk_live_... # or: X-Api-Key: dk_live_...
POST /api/v1/pdf
POST HTML (or JSON with html/url). Response is application/pdf.
| Param | Description |
|---|---|
page-size | Paper size, e.g. A4, Letter. |
orientation | Portrait or Landscape. |
margin-* | margin-top, margin-right, margin-bottom, margin-left (e.g. 12mm). |
engine | Optional. tiger (default), lion, or wolf. Free plan: Tiger only. |
text/html: raw UTF-8 HTML in the body.
application/json: use html or url. Optional page_size, landscape, margins.
{
"html": "<h1>Invoice</h1>",
"css": "h1 { color: #12201c }",
"engine": "tiger",
"pageSize": "a4",
"orientation": "portrait",
"margins": { "top": 12, "right": 12, "bottom": 12, "left": 12 }
}No JavaScript execution. Stick to document CSS: flow, tables, page breaks.
POST /api/v1/epub · /mobi · /azw3 · /markdown
Same API Key auth. Ebook bodies need html + title (author/cover optional). Markdown converts GFM → HTML. All Formats share Usage.
GET /api/v1/me
Returns your plan and usage for the current month. Same Bearer auth.