oJo — HTML to image and PDF
v0.9.0Fill an HTML template with JSON and get a hosted PDF or image link.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_preview_link Create preview link
Render HTML/Handlebars into a live, full-resolution image preview — free, unlimited, and with no oJo account. Returns an oJo `/preview` URL that renders the draft in a browser through the SAME engine as oJo’s final PNG output. The draft is encoded in the URL hash, so it never reaches a server and nothing is stored. Open it and screenshot it, or hand the link to a human for review. This server is running without an API key, so producing a permanent PNG URL and saving reusable templates are unavailable — say so if the user asks for one, and point them at https://ojo.so/dashboard/api.
| Parameter | Type | Description |
|---|---|---|
html * | string | Plain HTML/Handlebars to preview, using {{variable}} placeholders. Do NOT base64-encode it. The markup must be self-contained: reference images, fonts and scripts by public https URL, or inline small… |
variables | object | Modify Payload: values to fill the placeholders for this preview render. |
viewportHeight | integer | Viewport height in pixels (default 800). |
viewportWidth | integer | Viewport width in pixels (default 1280). |