80trust / 100
Pdf Rasterize
by Tanod pdfpeek in Documents & files
x402 APIPassing, checked 2 h ago
pdfpeek (Tanod) PDF rasterize: up to 5 selected pages flattened to an image-only PDF. Use when a PDF must become image-only pages, so no text layer, form, link or script survives.
POST https://tanod.dev/v1/pdf/rasterize
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 281 ms typical, 1.5 s slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/pdf/rasterize' \
-H 'content-type: application/json' \
--data-raw '{"dpi":100,"pages":"1","url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}'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%2Frasterize
const res = await pay("https://tanod.dev/v1/pdf/rasterize", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"dpi\":100,\"pages\":\"1\",\"url\":\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"}",
});
console.log(await res.json());Example input
{
"dpi": 100,
"pages": "1",
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}Example output
{
"dpi": 100,
"file": {
"bytes": 10342,
"content_type": "application/pdf",
"data_base64": "JVBERi0xLjcKJb/3... (trimmed: 13,792 base64 characters in the reply)",
"name": "rasterized.pdf",
"pages": 1
},
"format": "jpeg",
"input_bytes": 13264,
"input_pages": 1,
"operation": "rasterize",
"output_bytes": 10342,
"rasterized": 1,
"untrusted_content": 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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 269 ms | $0.005 |
| 6 h ago | Passed | 402 | 267 ms | $0.005 |
| 10 h ago | Passed | 402 | 402 ms | $0.005 |
| 14 h ago | Passed | 402 | 281 ms | $0.005 |
| 18 h ago | Passed | 402 | 281 ms | $0.005 |
| 21 h ago | Passed | 402 | 277 ms | $0.005 |
| 25 h ago | Passed | 402 | 283 ms | $0.005 |
| 28 h ago | Passed | 402 | 1.5 s | $0.005 |
| 32 h ago | Passed | 402 | 264 ms | $0.005 |
| 36 h ago | Passed | 402 | 276 ms | $0.005 |
| 39 h ago | Passed | 402 | 347 ms | $0.005 |
| 43 h ago | Passed | 402 | 476 ms | $0.005 |
| 47 h ago | Passed | 402 | 895 ms | $0.005 |
| 2 days ago | Passed | 402 | 3.0 s | $0.005 |
| 2 days ago | Passed | 402 | 258 ms | $0.005 |