Skip to content
Fourohtwo

format.halowerk.com/v1/html-to-pdf

Render HTML/CSS to PDF in headless Chrome with page size, margins, header and footer with page numbers; scripts off, no network access. Prints HTML/CSS with headless Chrome 148 (puppeteer-core) in a fresh incognito context per call. Scripts in the document are disabled and every network request is blocked (only inline and data: resources), so no foreign URL is fetched; blocked requests are counted

BaseAnswering
POSThttps://format.halowerk.com/v1/html-to-pdf

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/html-to-pdf", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"footer":{"right":"Page {page} of {pages}"},"html":"<h1>Delivery note 4711</h1><p>2 × pressure sensor</p>","page_size":"A4"}),
});
console.log(await res.json());

Example input

{
  "footer": {
    "right": "Page {page} of {pages}"
  },
  "html": "<h1>Delivery note 4711</h1><p>2 × pressure sensor</p>",
  "page_size": "A4"
}