Stirling PDF icon

Stirling PDF

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

Actions260

Analysis → Get Page Count

AI-generated

Summary

Retrieve the page count of a PDF file supplied either as binary data or by file ID.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data; defaults to 'data' if not specified.
  • File Id — Identifier of the PDF file to analyze; used if binary data is not provided.
  • Request Options — Various HTTP request settings such as batching, SSL validation, proxy, and timeout.

Output shape

A single JSON object containing the page count of the specified PDF.

The operation returns one item per input. When batching is enabled, requests are split accordingly. If both binary input and file ID are provided, binary input takes precedence.

Examples

Example 1: Using binary input

Set the "Input Binary Field Name" to the binary property holding the PDF file data.

Example 2: Using file ID

Provide the file ID corresponding to the PDF file in the "File Id" field if binary data is not used.

Links

Discussion