← Back to directory

Extract pages from a PDF (in the order given) (Tanod)

https://tanod.dev/v1/pdf/extract-pages

Overview

A new PDF with the selected pages in the order given (repeats allowed). Pages are 1-based: N, N-M, N- (to the end), -M and last, comma separated; an out-of-range or reversed part is a 422 page_out_of_range (never clamped). Pages not selected are really gone (no orphan objects). Body: `{"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf", "pages": "1-2,last"}`. The result comes back inline as base64 in `file` (or `files`) with name, content_type, bytes and pages, or with `output`

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network eip155:8453
Category tools/documents
Provider tanod
Source bazaar
Indexed 2026-10-07 22:29:17

Health

Status healthy
Latency (p50) 421ms
Uptime (30d) 98.5%
Reliability Score 94.2/100
Last Checked 2026-10-31 07:04:47
Last Healthy 2026-10-31 07:04:47
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "pages": "1-2,last", "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "active_content_removed": {}, "file": { "bytes": 58827, "content_type": "application/pdf", "data_base64": "JVBERi0xLjcKJb/3... (trimmed: 78,436 base64 characters in the reply)", "name": "extracted.pdf", "pages": 3 }, "input_bytes": 140815, "input_pages": 6, "operation": "extract-pages", "output_bytes": 58827, "untrusted_content": true }, "type": "json" }