Crop PDF page boxes using margins in points or percent
Crop PDF page boxes using margins in points or percent. Use when margins must be trimmed from the pages of a PDF. Add output=url for a 24 h link.
Answeringour last check, 2026-11-27
7 of 7checks answered this week
343 msmedian answer time
$0.005listed price per call
$0.005price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://tanod.dev/v1/pdf/crop
| Category | Everything else |
|---|---|
| Provider host | tanod.dev |
| Networks | eip155:137, eip155:42161, eip155:56, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | valid payment request | 402 | $0.005 | 290 ms |
| 2026-11-26 | valid payment request | 402 | $0.005 | 184 ms |
| 2026-11-25 | valid payment request | 402 | $0.005 | 343 ms |
| 2026-11-24 | valid payment request | 402 | $0.005 | 208 ms |
| 2026-11-23 | valid payment request | 402 | $0.005 | 355 ms |
| 2026-11-22 | valid payment request | 402 | $0.005 | 364 ms |
| 2026-11-21 | valid payment request | 402 | $0.005 | 378 ms |
| 2026-11-20 | valid payment request | 402 | $0.005 | 280 ms |
| 2026-11-19 | valid payment request | 402 | $0.005 | 197 ms |
| 2026-11-18 | valid payment request | 402 | $0.005 | 198 ms |
| 2026-11-17 | valid payment request | 402 | $0.005 | 222 ms |
| 2026-11-16 | valid payment request | 402 | $0.005 | 186 ms |
| 2026-11-15 | valid payment request | 402 | $0.005 | 236 ms |
| 2026-11-14 | valid payment request | 402 | $0.005 | 349 ms |
| 2026-11-13 | valid payment request | 402 | $0.005 | 286 ms |
| 2026-11-12 | valid payment request | 402 | $0.005 | 201 ms |
| 2026-11-11 | valid payment request | 402 | $0.005 | 288 ms |
| 2026-11-10 | valid payment request | 402 | $0.005 | 192 ms |
| 2026-11-09 | valid payment request | 402 | $0.005 | 350 ms |
| 2026-11-08 | valid payment request | 402 | $0.005 | 369 ms |
| 2026-11-07 | valid payment request | 402 | $0.005 | 286 ms |
| 2026-11-06 | valid payment request | 402 | $0.005 | 362 ms |
| 2026-11-05 | valid payment request | 402 | $0.005 | 187 ms |
| 2026-11-04 | valid payment request | 402 | $0.005 | 290 ms |
| 2026-11-03 | valid payment request | 402 | $0.005 | 195 ms |
| 2026-11-02 | valid payment request | 402 | $0.005 | 315 ms |
| 2026-11-01 | valid payment request | 402 | $0.005 | 362 ms |
| 2026-10-31 | valid payment request | 402 | $0.005 | 348 ms |
| 2026-10-29 | valid payment request | 402 | $0.005 | 352 ms |
Example input (from the provider)
{
"body": {
"bottom": 36,
"left": 36,
"right": 36,
"top": 36,
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"bottom": {
"default": 0,
"description": "Margin to cut from the bottom edge, in `unit` (default 0).",
"maximum": 14400,
"minimum": 0,
"type": "number"
},
"left": {
"default": 0,
"description": "Margin to cut from the left edge, in `unit` (default 0).",
"maximum": 14400,
"minimum": 0,
"type": "number"
},
"output": {
"default": "base64",
"description": "base64 (default): inline. url: stored for 24 hours; link, metadata.",
"enum": [
"base64",
"url"
],
"type": "string"
},
"pages": {
"anyOf": [
{
"maxLength": 200,
"minLength": 1,
"pattern": "^[0-9a-zA-Z ,\\-]+$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Pages to crop (default all), e.g. 1-3,5."
},
"pdf_base64": {
"anyOf": [
{
"maxLength": 13398872,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
},
"right": {
"default": 0,
"description": "Margin to cut from the right edge, in `unit` (default 0).",
"maximum": 14400,
"minimum": 0,
"type": "number"
},
"top": {
"default": 0,
"description": "Margin to cut from the top edge of the page as displayed, in `unit` (default 0).",
"maximum": 14400,
"minimum": 0,
"type": "number"
},
"unit": {
"default": "pt",
"description": "pt (1/72 inch, default) or percent of the displayed page's width (left, right) and height (top, bottom).",
"enum": [
"pt",
"percent"
],
"type": "string"
},
"url": {
"anyOf": [
{
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}