Stirling PDF icon

Stirling PDF

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

Actions260

Misc → Extract Header 1

AI-generated

Summary

Extract the top-level header (Header 1) text from a PDF file provided as binary data or by file ID, optionally using the first text as fallback if no header is found.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data to extract the header from. Defaults to 'data' if not provided.
  • File Id — File ID referencing a previously uploaded PDF on the server, used instead of binary data input for extraction.
  • Use First Text As Fallback — Boolean flag to use the first extracted text as fallback when no Header 1 text is identified. Defaults to false.
  • Request Options — Settings such as batching, SSL certificate validation bypass, HTTP proxy, and request timeout influencing how the extraction request is made.

Output shape

a JSON object containing the extracted Header 1 text or fallback text if enabled and applicable

The output includes the extracted top-level header text from the PDF. If extraction fails and fallback is enabled, the first text found is returned instead. File input can be given as direct binary data or by file ID for server-side stored files. Error or status information may be included upon failure.

Links

Discussion