---
title: "Extract a range of pages from a PDF document."
method: POST
path: "/pdf/extract/"
tags: ["PDF"]
---

# Extract a range of pages from a PDF document.

`POST /pdf/extract/`

Extracts a range of pages from a PDF document. The start and end pages are included in the extracted document. The extracted document is named after the original document with a suffix added to indicate the range of pages it contains (ex:document\_extracted\_\$start\_\$end.pdf).

## Response `201`

Extracted PDF file generated successfully

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/onedoclabs/apis/fileforge-api.md) · [All operations](https://skmtc.net/onedoclabs/apis/fileforge-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onedoclabs/fileforge-api/versions/a5a51ce2a2fd/schema)
