{"uid":"cap_NW5mGZr5J5TstVktyrc1j","slug":"tanod-pdfpeek-pdf-crop-cf997f9a","name":"Tanod pdfpeek PDF Crop","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/pdf/crop?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"top":{"type":"number","default":0,"maximum":14400,"minimum":0,"description":"Margin to cut from the top edge of the page as displayed, in `unit` (default 0)."},"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"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."},"left":{"type":"number","default":0,"maximum":14400,"minimum":0,"description":"Margin to cut from the left edge, in `unit` (default 0)."},"unit":{"enum":["pt","percent"],"type":"string","default":"pt","description":"pt (1/72 inch, default) or percent of the displayed page's width (left, right) and height (top, bottom)."},"pages":{"anyOf":[{"type":"string","pattern":"^[0-9a-zA-Z ,\\-]+$","maxLength":200,"minLength":1},{"type":"null"}],"default":null,"description":"Pages to crop (default all), e.g. 1-3,5."},"right":{"type":"number","default":0,"maximum":14400,"minimum":0,"description":"Margin to cut from the right edge, in `unit` (default 0)."},"bottom":{"type":"number","default":0,"maximum":14400,"minimum":0,"description":"Margin to cut from the bottom edge, in `unit` (default 0)."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"pdf_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The PDF as base64 (at most 10 MB decoded per request); or use url."}}},"responseSchema":{"type":"json","example":{"file":{"name":"cropped.pdf","bytes":13218,"pages":1,"data_base64":"JVBERi0xLjQKJb/3... (trimmed: 17,624 base64 characters in the reply)","content_type":"application/pdf"},"unit":"pt","boxes":[{"page":1,"width_pt":523,"height_pt":770}],"operation":"crop","input_bytes":13264,"input_pages":1,"output_bytes":13218,"cropped_pages":1,"boxes_truncated":false,"untrusted_content":true,"active_content_removed":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SR9GmZ51U7SGKv-fy_Wlw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Crops margins from specified pages of a PDF document, returning the trimmed PDF as base64-encoded data","exampleAgentPrompt":"Crop this PDF by cutting 50pt from the top, 30pt from the bottom, and 20pt from each side — here's the URL: https://example.com/report.pdf — apply it to pages 1-5 only and give me the result as a base64 PDF.","exampleUseCases":[{"title":"Remove scanned document borders","prompt":"I have a scanned PDF with big black borders all around — can you crop 40pt from each edge on all pages to clean it up? Here's the URL: https://example.com/scan.pdf"},{"title":"Trim header and footer from report","prompt":"Strip the top 60pt and bottom 45pt from pages 2-10 of this PDF to remove the running header and footer: https://example.com/annual-report.pdf"},{"title":"Crop first page to content area","prompt":"I need to crop just page 1 of this PDF: remove 10% from the top and 10% from the bottom using percent units, the file is at https://example.com/brochure.pdf"}],"resultDescription":"Returns a JSON object containing the cropped PDF encoded as base64, along with metadata: output file name ('cropped.pdf'), byte sizes for input and output, number of pages cropped, per-page dimensions in points, the unit used, and flags indicating whether any active/unsafe content was removed.","failureModes":["URL points to a private, internal, or IP-literal host — request refused","PDF exceeds 20 MB via URL or 10 MB via base64 — rejected with size error","Invalid page range pattern causes a parsing error","Neither url nor pdf_base64 provided — missing required input","Margin values exceed the maximum of 14400 — validation error","PDF is password-protected or corrupted — processing failure"],"whenToPreferThis":"Choose this endpoint when you need to programmatically trim page margins or remove headers/footers from a PDF, especially in a pay-per-call agent workflow without any signup. It accepts both public URLs and base64-encoded PDFs, supports per-unit cropping in points or percentages, and targets specific page ranges — making it ideal for precise document cleanup tasks where you want a clean base64 PDF back immediately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:38:30.871Z","isFirstParty":false,"canonicalSlug":"tanod-pdfpeek-pdf-crop-cf997f9a"}