Delete Blank Pages
Organize → Delete Blank Pages
The Delete Blank Pages API removes blank pages from a PDF. You send the PDF (docContent Base64, docName), deletePageOption (NoTextNoImages, NoText, or NoImages), and optionally async. The API returns the PDF with blank pages removed. Use the tester below to try it; more details are in the sections that follow.
Try the Delete Blank Pages API
:::note Quick reference
Endpoint: POST /api/v2/DeleteBlankPages · Required: api-key, docContent, docName, deletePageOption
:::
:::info Try it live Use the form below to send your API key, PDF (Base64), and blank-page criteria (no text, no images, or both). The response is the PDF with blank pages removed. No code required—fill the fields and click Send request. :::
Overview, parameters, and use cases
- Overview
- Parameters
- Use cases
What is Delete Blank Pages?
This endpoint removes blank pages from a PDF based on criteria. You choose deletePageOption: NoTextNoImages (pages with no text and no images), NoText (no text; may have images), or NoImages (no images; may have text). The API returns the PDF with matching pages removed.
Delete page options
- NoTextNoImages – Delete pages with no text and no images.
- NoText – Delete pages with no text (may have images).
- NoImages – Delete pages with no images (may have text).
:::tip Best for Use when cleaning scanned or generated PDFs with blank pages. For removing specific page numbers use Delete Unwanted Pages. :::
API parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api-key | string | Yes | Your PDF4me API key, Base64 encoded. Get it from the dashboard. |
| docContent | base64 | Yes | PDF file content (Base64). |
| docName | string | Yes | Output PDF file name (e.g. output.pdf). |
| deletePageOption | string | Yes | NoTextNoImages, NoText, or NoImages. |
| async | boolean | No | Enable asynchronous processing. |
When to use Delete Blank Pages
- Scanned PDFs – Remove blank scans from multi-page PDFs.
- Generated PDFs – Clean blank pages from reports or exports.
- Archiving – Reduce file size by removing empty pages.
:::info Need the full API? For request/response schemas and code samples, see Delete Blank Pages from PDF in the PDF4me API docs. :::
Prerequisites
Before using this endpoint, make sure you have:
- A valid PDF4me API key (Get your API Key)
- A PDF file in Base64 format
Response Format
The API returns a PDF file with blank pages removed according to the specified criteria.