Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

General → Delete Pages

AI-generated

Summary

Delete specified pages from a PDF document by inputting the PDF file (binary data or server-stored file ID) and specifying the pages to delete using page numbers, ranges, or formulas.

Inputs

  • fileInputBinaryProperty — Name of the binary property containing the PDF file data to process. Defaults to 'data' if not set.
  • fileId — File ID referencing a server-side stored PDF file, usable instead of binary input for asynchronous jobs.
  • pageNumbers (required) — Pages to delete in the PDF, accepts 'all', numeric ranges (e.g., '1,3,5-9'), or formulas in 'an+b' format (e.g., '2n+1').
  • requestOptions — Additional request configuration such as batching, SSL certificate handling, proxy, and timeout settings.

Output shape

binary file

Returns the modified PDF file with the specified pages removed as binary data in the output. Supports batch processing of multiple inputs with configurable batch size and interval.

Links

Discussion