HTML or Markdown in; PDF, EPUB, MOBI or AZW3 out. 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 a JSON body (Content-Type: application/json). The response is the PDF (application/pdf).
| Param | Description |
|---|---|
html / url | Required, exactly one: html (a string) or url (a public http(s) page; redirects are not followed). |
css | Optional. Added before the HTML as a <style> block. |
engine | tiger · lion · wolf. Optional; tiger is the default. The free plan includes Tiger only. PDF engines |
pageSize | Tiger only: letter, a4, legal or tabloid; overrides CSS @page size (default Letter). On Lion and Wolf, use CSS @page size. |
orientation | Tiger only: portrait (default) or landscape. |
margins | Tiger only, in points (1/72 in): one number for every side, or an object with top/right/bottom/left; overrides CSS @page margin (default 40). On Lion and Wolf, use CSS @page margin. |
title | Optional. Sets the PDF document title. |
{
"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 is run, and remote assets load only from public addresses. See PDF engines for what each engine supports.
Choose one per request with the engine field. All three share the floor below; the table shows where they differ.
Guide: HTML to PDF without headless Chrome or Puppeteer
| Tiger | Lion | Wolf | |
|---|---|---|---|
| Best for | Short, simple invoices and receipts; quick drafts. | Multi-page invoices and reports; CJK text. | Documents with the strictest print layout. |
| CSS & pagination | CSS subset, read from the css field and <style> only (<link> stylesheets are ignored): no multi-column, shadows, filters or animations; gradients render as their first color. @page size and margin, @top-* / @bottom-* boxes and page counters (default Letter, 40pt margins); page size, orientation and margins in the request win. Table headers repeat on every page. No forced page breaks or :first / :left / :right pages. | Fuller CSS than Tiger: @page size, margins, headers, footers and page counters (default A4, 1in margins); break-before/after/inside; table headers repeated on every page. | The most complete CSS pagination of the three: @page size and margins (default Letter, 54pt margins), running headers and footers, page counters, repeated table headers, break control. Gradients, multi-column, inline <svg>, GIF and WOFF/WOFF2 fonts work. |
| Watch out for | Fonts: Helvetica, or Noto Sans JP when the text has characters beyond Latin-1. font-family and @font-face are ignored. Images: PNG / JPEG from data: or public http(s) URLs, in <img> or CSS backgrounds (no redirects, up to 5 MB each). SVG, WebP, GIF and inline <svg> are left blank. | Heavier than Tiger. No gradients, multi-column, sticky, filters, animations or vertical text. Images: PNG / JPEG / WebP / SVG via <img> or CSS - no GIF, no inline <svg>. Fonts: TTF/OTF via @font-face - no WOFF/WOFF2. | Heavier than Tiger. Built for print: screen-only CSS such as animations and sticky has no effect. |
| Plan | All plans · default | Pro | Pro |
One two-page invoice, identical HTML + CSS, sent through the API once per engine. Pages 1 and 2, no watermark.



POST /api/v1/epub POST /api/v1/mobi POST /api/v1/azw3
Ebook endpoints need html and a non-empty title; css, author and cover are optional. The response is the EPUB, MOBI or AZW3 file.
{
"html": "<h1>Chapter 1</h1><p>…</p>",
"title": "Field Notes",
"author": "Ada Lovelace"
}POST /api/v1/markdown
/markdown needs markdown (GitHub-flavored) and takes optional css. The response is HTML.
{ "markdown": "# Invoice\n\n| Item | Qty |\n|---|---|\n| Pens | 2 |" }Every format uses the same API key and draws from the same monthly conversions.
GET /api/v1/me
Returns your plan and usage for the current month. Same Bearer auth.
A failed call returns a non-2xx status and a JSON body naming the reason. Failed conversions are never retried or moved to another engine.
HTTP/1.1 429 Too Many Requests
{ "error": "quota_exceeded" }| Status | Code | Description |
|---|---|---|
| 400 | invalid_jsonhtml_requiredtitle_requiredmarkdown_requiredambiguous_sourceurl_invalidurl_not_allowed | Invalid JSON, a missing field, both html and url sent, or a url that is not allowed. |
| 401 | missing_api_keyinvalid_api_key | The API key is missing or not valid. |
| 403 | account_canceledengine_not_allowed | The account is canceled, or the engine is not on your plan. |
| 413 | body_too_large | The body, or the page fetched from url, is over your plan’s size limit. |
| 429 | quota_exceededrate_limit_exceeded | Monthly conversions used up, or the per-minute rate reached. The Retry-After header gives the seconds until you can retry: to the next minute, or to the start of next month (UTC). |
| 502 | conversion_failedurl_fetch_failed | The engine could not produce the file, or the url could not be fetched. |