{"uid":"cap_5spRJiP8uChG_W3jWIXqH","slug":"tanod-docs-pdf-split-6cebe766","name":"Tanod Docs PDF Split","description":"Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.","url":"https://docs.tanod.dev/v1/pdf/split?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"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."},"mode":{"enum":["ranges","every"],"type":"string","default":"ranges","description":"ranges (one file per comma part of `ranges`) or every (a file every `every` pages)."},"every":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"default":null,"description":"mode=every: pages per file."},"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."},"ranges":{"anyOf":[{"type":"string","pattern":"^[0-9a-zA-Z ,\\-]+$","maxLength":200,"minLength":1},{"type":"null"}],"default":null,"description":"mode=ranges: e.g. 1-3,4-6,7-."},"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":{"mode":"ranges","files":[{"name":"pages-1.pdf","bytes":51782,"pages":1,"last_page":1,"first_page":1,"data_base64":"JVBERi0xLjcKJb/3... (trimmed: 69,044 base64 characters in the reply)","content_type":"application/pdf"},{"name":"pages-2-6.pdf","bytes":44619,"pages":5,"last_page":6,"first_page":2,"data_base64":"JVBERi0xLjcKJb/3... (trimmed: 59,492 base64 characters in the reply)","content_type":"application/pdf"}],"operation":"split","file_count":2,"input_bytes":140815,"input_pages":6,"output_bytes":96401,"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_XjDFSAhL87H6Z4eeMI7DX","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":"Splits a PDF into multiple smaller PDFs by page ranges or fixed page intervals, returning files as base64 or download URLs.","exampleAgentPrompt":"Split this PDF (https://example.com/report.pdf) into three parts by page ranges 1-3, 4-6, and 7 onward, and give me download links instead of base64 data.","exampleUseCases":[{"title":"Split contract into sections","prompt":"Take this PDF contract at https://files.example.com/contract.pdf and split it into separate files — pages 1-5 for the terms, pages 6-10 for the appendix, and pages 11 onward for the signatures — and return download links."},{"title":"Chunk large report every 10 pages","prompt":"I have a 120-page annual report at https://reports.corp.com/annual2024.pdf — can you split it into chunks of 10 pages each and give me download URLs so I can share the sections individually?"},{"title":"Extract single chapter from ebook","prompt":"Please split this PDF ebook I'm uploading as base64 and pull out just pages 22-45 as a standalone file — return it as base64 so I can use it directly."}],"resultDescription":"Returns a JSON object containing an array of split PDF files. Each file entry includes its name, byte size, page count, first and last page numbers, content type, and either the file data as a base64 string or a download URL (valid for 24 hours) with expiry timestamp, byte count, and SHA-256 hash. Also includes summary fields: operation type, total file count, input byte size, input page count, and total output byte size.","failureModes":["PDF URL exceeds 20 MB or is from a private/internal/IP-literal host — request refused","base64 PDF input exceeds 10 MB decoded — request rejected","Invalid page ranges format (must match pattern like '1-3,4-6,7-') — validation error","mode=every used without specifying the 'every' parameter — missing required field","PDF is password-protected or corrupted — processing failure","Network timeout fetching remote PDF URL — connection error"],"whenToPreferThis":"Use this endpoint when you need to split a PDF into multiple output files either by explicit page ranges or by fixed page intervals. It is ideal for breaking large documents into distributable sections, extracting chapters, or chunking reports for downstream processing. Prefer it over generic file conversion endpoints when your goal is specifically partitioning a PDF (not converting its format or extracting text content).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:44:15.156Z","isFirstParty":false,"canonicalSlug":"tanod-docs-pdf-split-6cebe766"}