{"uid":"cap_adv_FHer-f-JfesUyPNq4","slug":"agent402-tools-pdf-extract-pages-ee809f19","name":"agent402.tools PDF Extract Pages","description":"Pull a subset of pages into a new PDF (split). Body: {\"url\":\"https://…/file.pdf\",\"pages\":\"1-3,5\"}. Returns the new PDF as base64.","url":"https://agent402.tools/api/pdf-extract-pages","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of the PDF"},"pages":{"type":"string","description":"Page selector, 1-based, e.g. \"1-3,5,8-10\""}}},"responseSchema":{"type":"json","example":{"bytes":12044,"pages":2,"pdfBase64":"JVBERi0xLjcK…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9Vu-9Kb1GbPzCZrIHeXT0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts a specified subset of pages from a remote PDF and returns the result as a base64-encoded PDF.","exampleAgentPrompt":"Can you pull out pages 1-3 and page 5 from this PDF — https://example.com/report.pdf — and give me the result as a new PDF?","exampleUseCases":null,"resultDescription":"A base64-encoded string representing a new PDF file containing only the requested pages, ready to be decoded and saved or forwarded.","failureModes":["Invalid or inaccessible PDF URL returns an error","Malformed page selector string (e.g. non-numeric or out-of-range pages) returns an error","Requested pages exceed total page count of the document","PDF is password-protected or encrypted and cannot be read","Network timeout fetching the remote PDF"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract a specific set of pages from a remotely hosted PDF and receive the result as base64 — ideal for document splitting, report subsetting, or isolating chapters without downloading and processing the entire file locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:53:41.727Z","isFirstParty":false}