Stirling PDF icon

Stirling PDF

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

Actions260

Misc → Process Pdf With OCR

AI-generated

Summary

Process a PDF file using OCR to extract and optionally clean or modify its content based on various configurable parameters.

Inputs

  • fileInputBinaryProperty — Name of the binary property containing the input PDF file data; defaults to 'data' if not specified.
  • fileId — Identifier for a previously processed server-side file, used as an alternative to providing the file binary input.
  • languages (required) — List of language codes (e.g., 'eng', 'deu') to use for OCR text recognition.
  • sidecar — Flag to include OCR text in a separate sidecar text file if set to true.
  • deskew — Flag to deskew the input PDF during processing if true.
  • clean — Flag to apply cleaning operations on the input PDF if true.
  • cleanFinal — Flag to clean the final output PDF after OCR if true.
  • ocrType (required) — Specifies the OCR approach: 'skip-text' (do not OCR pages with text), 'force-ocr' (OCR all pages), or 'Normal' (standard OCR).
  • ocrRenderType (required) — Determines the OCR render mode: 'hocr' (HTML-based output) or 'sandwich' (PDF with OCR text layers).
  • removeImagesAfter — Flag to remove images from the output PDF if set to true.
  • requestOptions — Collection of advanced HTTP request options such as batching, proxy, timeout, and SSL handling.

Output shape

a processed PDF file with OCR applied, potentially accompanied by a sidecar text file if enabled

Input can be provided either as binary data within the workflow or by referencing a previously processed server-side file via fileId. Output contents and features depend on selected options like language, OCR type, render type, and cleaning flags.

Links

Discussion