API V2

Delete Blank Pages from PDF

Automatically detect and remove blank pages from PDF documents using the PDF4me Delete Blank Pages API. This powerful tool helps clean up PDFs by identifying and deleting empty pages with no text content or images. Choose from different deletion options: NoTextNoImages (removes pages with no text and no images), NoText (removes pages with no text), or NoImages (removes pages with no images). Perfect for document optimization and file size reduction.

  • Method: POST
  • Endpoint: /api/v2/DeleteBlankPages

Parameters

File Contentbase64, Required

The content of the input file.

File Namestring, Required

Source file name with proper file extension

Delete Optionstring, Required

Choose the deletion criteria for blank page detection:

  • NoTextNoImages - Remove pages with no text content and no images (most comprehensive cleanup)
  • NoText - Remove pages with no text content (keeps pages with images only)
  • NoImages - Remove pages with no images (keeps pages with text only)

Output

File Contentbinary

Output file content from the PDF4me Connect

Header
Content-Type: application/json
Authorization: Please copy key from the link.

Payload

{
  "docContent": "Please put PDF base64 content",
  "docName": "output.pdf",
  "deletePageOption": "NoTextNoImages"
}

PDF4me API Code Samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda