80trust / 100
Pdf Crop
by Tanod pdfpeek in Documents & files
x402 APIPassing, checked 2 h ago
pdfpeek (Tanod) PDF crop: the crop box of the pages set by margins in points or percent. Use when margins must be trimmed from the pages of a PDF.
POST https://tanod.dev/v1/pdf/crop
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 273 ms typical, 621 ms 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/crop' \
-H 'content-type: application/json' \
--data-raw '{"bottom":36,"left":36,"right":36,"top":36,"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%2Fcrop
const res = await pay("https://tanod.dev/v1/pdf/crop", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"bottom\":36,\"left\":36,\"right\":36,\"top\":36,\"url\":\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"}",
});
console.log(await res.json());Example input
{
"bottom": 36,
"left": 36,
"right": 36,
"top": 36,
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}Example output
{
"active_content_removed": {},
"boxes": [
{
"height_pt": 770,
"page": 1,
"width_pt": 523
}
],
"boxes_truncated": false,
"cropped_pages": 1,
"file": {
"bytes": 13218,
"content_type": "application/pdf",
"data_base64": "JVBERi0xLjQKJb/3... (trimmed: 17,624 base64 characters in the reply)",
"name": "cropped.pdf",
"pages": 1
},
"input_bytes": 13264,
"input_pages": 1,
"operation": "crop",
"output_bytes": 13218,
"unit": "pt",
"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 | 262 ms | $0.005 |
| 6 h ago | Passed | 402 | 271 ms | $0.005 |
| 10 h ago | Passed | 402 | 621 ms | $0.005 |
| 14 h ago | Passed | 402 | 386 ms | $0.005 |
| 18 h ago | Passed | 402 | 303 ms | $0.005 |
| 21 h ago | Passed | 402 | 1.1 s | $0.005 |
| 25 h ago | Passed | 402 | 289 ms | $0.005 |
| 28 h ago | Passed | 402 | 269 ms | $0.005 |
| 32 h ago | Passed | 402 | 263 ms | $0.005 |
| 36 h ago | Passed | 402 | 273 ms | $0.005 |
| 39 h ago | Passed | 402 | 274 ms | $0.005 |
| 43 h ago | Passed | 402 | 353 ms | $0.005 |
| 47 h ago | Passed | 402 | 268 ms | $0.005 |
| 2 days ago | Passed | 402 | 271 ms | $0.005 |
| 2 days ago | Passed | 402 | 259 ms | $0.005 |