81trust / 100
Pdf Html To Pdf
by Tanod pdfpeek in Documents & files
x402 APIPassing, checked 50 min ago
pdfpeek (Tanod) web page to PDF: a public page printed to PDF in a sandboxed browser.
POST https://tanod.dev/v1/pdf/html-to-pdf
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 290 ms typical, 290 ms slowest 5%
- Last check
- 50 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/pdf/html-to-pdf" \
-H "content-type: application/json" \
-d '{"paper":"a4","url":"https://example.com"}'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%2Ftanod.dev%2Fv1%2Fpdf%2Fhtml-to-pdf
const res = await pay("https://tanod.dev/v1/pdf/html-to-pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"paper":"a4","url":"https://example.com"}),
});
console.log(await res.json());Example input
{
"paper": "a4",
"url": "https://example.com"
}Example output
{
"file": {
"bytes": 27621,
"content_type": "application/pdf",
"data_base64": "JVBERi0xLjQKJdPr... (trimmed: 36,828 base64 characters in the reply)",
"name": "page.pdf",
"pages": 1
},
"landscape": false,
"operation": "html-to-pdf",
"output_bytes": 27621,
"pages": 1,
"paper": "a4",
"untrusted_content": true,
"url": "https://example.com"
}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 |
|---|---|---|---|---|
| 50 min ago | Passed | 402 | 381 ms | $0.01 |
| 6 h ago | Passed | 402 | 290 ms | $0.01 |