Skip to content
Fourohtwo

ShrinkWise

api.shrinkwise.io/v1/convert/html-to-pdf

ShrinkWise. Renders one self-contained UTF-8 HTML file (up to 5 MiB) to PDF in headless Chrome: print CSS, @page, page breaks, flex/grid, SVG, data: URI images/fonts. A4/Letter/Legal/A3/A5, landscape, margins. External URLs are blocked and reported. JavaScript is off by default; when enabled, scripts run without network access except best-effort WebRTC blocking. Up to 50 pages/25 MB. Batches: 10 f

BaseDown
POSThttps://api.shrinkwise.io/v1/convert/html-to-pdf

Uptime50.0% of 4 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://api.shrinkwise.io/v1/convert/html-to-pdf", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"javascript":false,"job":"00000000-0000-4000-8000-000000000001","landscape":false,"margin":10,"media":"print","mode":"render","pageSize":"A4","printBackground":true,"sha256":"0000000000000000000000000000000000000000000000000000000000000000"}),
});
console.log(await res.json());

Example input

{
  "javascript": false,
  "job": "00000000-0000-4000-8000-000000000001",
  "landscape": false,
  "margin": 10,
  "media": "print",
  "mode": "render",
  "pageSize": "A4",
  "printBackground": true,
  "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
}

More from ShrinkWiseProvider status