---
title: "Extract pages from a PDF"
method: POST
path: "/api/pdf-tools/extract"
tags: ["PDF Tools"]
---

# Extract pages from a PDF

`POST /api/pdf-tools/extract`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/pdf-tools/extract`
- Auth: API key in header `X-API-Key`

Extract specific pages from a PDF into a new PDF. Unlike split, this always returns a single PDF with the selected pages.

## Query parameters

- `pages` string, required

## Response `200`

Extracted PDF

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
