---
title: Export Selected PDF Pages API
slug: export-selected-pdf-pages
url: https://apyhub.com/freedailypro/service/export-selected-pdf-pages
provider: FreeDailyPro
auth: api_key
version: v1
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Export Selected PDF Pages API

Extract specific pages from a PDF and export them as a new PDF file. Select individual pages or page ranges to create a PDF containing only the pages you need.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/export-selected-pdf-pages/extract` | What it does Extracts selected pages from an uploaded PDF and returns the resulting PDF as a binary… | 10 |

## Endpoint reference

### Extract pages from a PDF

`POST https://api.eu.apyhub.com/freedailypro/export-selected-pdf-pages/extract` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The PDF. Up to 20 MB. |
| `pages` | body | string | yes | Comma-separated pages or ranges, for example 1,3-5,8 |

#### Quickstart

Upload a PDF and specify which pages to extract.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/export-selected-pdf-pages/extract" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.pdf" \
  -F "pages=1,3-5,8"
```

#### What you'll get back

Returns the extracted PDF as a binary file stream.

```text
(binary file)
```

## About

## What it does
PDF Page Extractor lets you send a PDF and specify which pages to pull out. The `/extract` endpoint accepts a binary PDF file, up to 20 MB, plus a `pages` string with comma-separated page numbers and ranges such as `1,3-5,8`.

Use it when you need to split a larger document into a smaller one without rebuilding the PDF yourself. Common cases include isolating signed pages, pulling a few sections from a report, or extracting only the pages relevant to a support ticket, audit, or review workflow.

The response is a binary PDF containing just the selected pages. Because the output is a file, you can pass it straight into storage, download handling, document processing, or a second transformation step.

PDF Page Extractor is a straightforward file utility: no extra metadata, no intermediate JSON, just the extracted PDF bytes returned from the pages you asked for.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/export-selected-pdf-pages
