81trust / 100
Proxy Html To Pdf
by HTML to PDF Converter in Documents & files
x402 APIPassing, checked 4 h ago
Render a URL or raw HTML string to PDF. Returns pdf_base64 (base64 PDF; decode to get raw bytes) and page_count. Provide url OR html, never both. Supports format (A4/Letter/Legal), landscape boolean, and margin settings (top/bottom/left/right in CSS units). Use for invoices, reports, or printable document generation.
POST https://agentsvc.io/api/v1/proxy/html-to-pdf
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 37 ms typical, 37 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/html-to-pdf" \
-H "content-type: application/json" \
-d '{"html":"<h1>Invoice #123</h1><p>Total: $42.00</p>"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fhtml-to-pdf
const res = await pay("https://agentsvc.io/api/v1/proxy/html-to-pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"html":"<h1>Invoice #123</h1><p>Total: $42.00</p>"}),
});
console.log(await res.json());Example input
{
"html": "<h1>Invoice #123</h1><p>Total: $42.00</p>"
}Example output
{
"data": {
"file_size_bytes": 14867,
"generated_at": "2026-04-07T12:00:00.000Z",
"page_count": 2,
"pdf_base64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9..."
},
"success": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 37 ms | $0.0045 |