Pages
Extract Pages
Build a new PDF from just the pages you choose — kept in the exact order you list them, so this doubles as a quick reorder-and-subset.
Free to try — no key required 10 credits / callSynchronous
Overview
On the free-try path. Page numbers are 1-based and kept in the given order.
POST
https://api.bytefuse.in/api/v1/pdf/pages/extractRequest
Content type multipart/form-data:
filefilerequiredThe source PDF.
pagesstringrequiredComma-separated 1-based page numbers to keep, in output order — e.g.
"1,3,5". A bad token returns 400.Response
The file is returned directly
Unlike the URL-returning tools, page operations stream the edited PDF back as the response body —application/pdf with Content-Disposition: attachment. Read the raw bytes and save them; there is no JSON envelope. The X-Credits-Charged header reports the credits billed (0 for anonymous calls).Examples
curl -X POST https://api.bytefuse.in/api/v1/pdf/pages/extract \
-F "file=@report.pdf" \
-F "pages=1,3,5" \
-o excerpt.pdfErrors
400A malformed or empty
pages list.402 / 429 / 503Insufficient credits, rate limited, or capacity/config error.
500The operation failed unexpectedly.
To rearrange every page instead, see Reorder Pages.
