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

WhenResultHTTPTimePrice
2 h agoPassed402269 ms$0.005
6 h agoPassed402267 ms$0.005
10 h agoPassed402402 ms$0.005
14 h agoPassed402281 ms$0.005
18 h agoPassed402281 ms$0.005
21 h agoPassed402277 ms$0.005
25 h agoPassed402283 ms$0.005
28 h agoPassed4021.5 s$0.005
32 h agoPassed402264 ms$0.005
36 h agoPassed402276 ms$0.005
39 h agoPassed402347 ms$0.005
43 h agoPassed402476 ms$0.005
47 h agoPassed402895 ms$0.005
2 days agoPassed4023.0 s$0.005
2 days agoPassed402258 ms$0.005