Skip to content
Fourohtwo

PDF extract pages

mpp-docs.fmf-x402.workers.dev/mpp/pdf/split

PDF extract pages — Extract pages from a PDF into a new PDF. pages="1-3,5,last" (1-based; reverse ranges allowed). Returns application/pdf, or JSON with base64 when format=json. Up to 40 MB. Price $0.003 per call.

BaseUnchecked
GEThttps://mpp-docs.fmf-x402.workers.dev/mpp/pdf/split

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://mpp-docs.fmf-x402.workers.dev/mpp/pdf/split?url=https%3A%2F%2Fraw.githubusercontent.com%2Fpy-pdf%2Fsample-files%2Fmain%2F001-trivial%2Fminimal-document.pdf&pages=1");
console.log(await res.json());

Example input

{
  "url": "https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf",
  "pages": "1"
}

More from FMF Tools FMF Tools Doc Tools