API Docs

One endpoint for HTML to PDF. Sign in, create a key, POST your document.

Quickstart

  1. Sign in and create an API key in the dashboard.
  2. Send HTML with Authorization: Bearer <key>.
  3. Save the response body as a PDF file.
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.pdf

Authentication

Every 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_...

Convert

POST /api/v1/pdf

POST HTML (or JSON with html/url). Response is application/pdf.

Query parameters

ParamDescription
page-sizePaper size, e.g. A4, Letter.
orientationPortrait or Landscape.
margin-*margin-top, margin-right, margin-bottom, margin-left (e.g. 12mm).
engineOptional. tiger (default), lion, or wolf. Free plan: Tiger only.

Request body

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.

Ebooks & Markdown

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.

Account

GET /api/v1/me

Returns your plan and usage for the current month. Same Bearer auth.