PDFCraft
Render option

Set a timeout for PDF rendering

Hard ceiling on the whole render. Exceeding it returns 408 render_timeout.

Fieldoptions.timeoutMs
Typeinteger, 1000 to 120000
Default30000

What it is for

A hard ceiling on the whole render. 30s by default, 120s maximum. Exceeding it force-closes the page and returns 408 render_timeout.

The trap

It is a ceiling, not a target, and it is enforced by force-closing the browser context — a hung page must never hold a concurrency slot open. A timeout is not billed, because nothing usable came out of it.

Example

curl -X POST https://api.pdfcraft.dev/v1/render \
  -H "Authorization: Bearer $PDFCRAFT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>hello</h1>",
    "options": {
      "timeoutMs": 60000
    }
  }' \
  --output out.pdf

Every option

Try any of these in the playground without writing a line of code, or read the full reference.