Pages
Delete Pages
Remove one or more pages from a PDF by number. The remaining pages are re-stitched into a new PDF and streamed straight back.
Free to try — no key required 10 credits / callSynchronous
Overview
On the free-try path. Page numbers are 1-based.
POST
https://api.bytefuse.in/api/v1/pdf/pages/deleteRequest
Content type multipart/form-data:
filefilerequiredThe source PDF.
pagesstringrequiredComma-separated 1-based page numbers to remove, e.g.
"2,4". 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/delete \
-F "file=@report.pdf" \
-F "pages=2,4" \
-o trimmed.pdfErrors
400A malformed or empty
pages list.402 / 429 / 503Insufficient credits, rate limited, or capacity/config error.
500The operation failed unexpectedly.
To keep only certain pages instead, see Extract Pages.
