Tekavra press — render HTML/URL into PDF, PNG, or JPG.
POST /v1/render
Authorization: Bearer
Content-Type: application/json
Body (JSON):
format "pdf" | "png" | "jpg" (default "pdf")
url string full URL to load (or use html)
html string raw HTML to render (or use url)
filename string output filename hint
// Pre-render (any format)
click_selector string click before render (e.g. a tab)
wait_for_selector string wait until visible
wait_ms number ms to wait after navigation/click (default 250)
// PDF-only
width_in number page width in inches (default 8.5)
height_in number page height in inches (default 11)
margin_in number margin in inches (default 0)
landscape bool (default false)
print_background bool paint background CSS (default true)
prefer_css_page_size bool honor @page size (default true)
// PNG/JPG-only
selector string clip image to a specific element
width_px number viewport width (default 1200)
height_px number viewport height (default 1500)
scale number device scale (DPI ×) (default 2)
quality number JPEG quality 1–100 (default 92)
omit_background bool transparent PNG (default false)
full_page bool capture beyond viewport (default false)
Response: 200 with the binary asset.
pdf → application/pdf (vector text, embedded fonts)
png → image/png
jpg → image/jpeg
Tips:
• PDF print: put @page { size: Win Hin; margin: 0; } in CSS, leave prefer_css_page_size on.
• Image with transparent bg: omit_background:true + format:"png".
• High-DPI image (retina, social): scale:2 or 3.
• Element-only image: provide selector — viewport is still set but only the element is captured.
GET /health → status check.