Skip to main content

Extract Pages

OrganizeExtract Pages

The Extract Pages API creates a new PDF from selected pages of a source PDF. You send the PDF (docContent Base64, docName), pageNumbers (e.g. 1, 1,3,5, 2-4), and optionally async. The API returns a PDF containing only those pages. Use the tester below to try it; more details are in the sections that follow.

Try the Extract Pages API

:::note Quick reference Endpoint: POST /api/v2/Extract · Required: api-key, docContent, docName, pageNumbers :::

:::info Try it live Use the form below to send your API key, PDF (Base64), and page numbers or range to extract. The response is a PDF with only those pages. No code required—fill the fields and click Send request. :::

Loading API Tester...

Overview, parameters, and use cases

What is Extract Pages?

This endpoint extracts selected pages from a PDF and returns a new PDF with only those pages. You provide pageNumbers: single page (e.g. 1), multiple pages (e.g. 1,3,5), or a range (e.g. 2-4). Use it to create shorter versions, booklets, or subsets from a larger PDF.

Page selection format

  • Single page: e.g. 1
  • Multiple pages: e.g. 1,3,5
  • Page range: e.g. 2-4

:::tip Best for Use when you need a subset of pages from a PDF. For splitting into multiple PDFs use Split PDF; for removing pages use Delete Unwanted Pages. :::

Prerequisites

Before using this endpoint, make sure you have:

Response Format

The API returns a PDF file containing only the specified pages.

Get Help