Stirling PDF icon

Stirling PDF

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

Actions260

Security → Redact Pdf Auto

AI-generated

Summary

Redact specified text strings from a PDF file, either provided as a binary input or identified by a file ID, applying custom redaction parameters and optionally converting the result to an image.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data to redact.
  • File Id — Identifier of an existing server-side PDF file to redact instead of providing binary data.
  • List Of Text (required) — Comma-separated list of text strings to redact from the PDF.
  • Use Regex (required) — Flag indicating if the list of text entries should be interpreted as regular expressions for matching.
  • Whole Word Search (required) — Flag indicating whether to match whole words only during redaction.
  • Redact Color (required) — Hex color code specifying the overlay color used for redactions.
  • Custom Padding (required) — Numeric value defining padding around redacted texts.
  • Convert PDF To Image (required) — Flag to convert the redacted PDF into an image format.

Output shape

a binary PDF file containing the redactions applied, or an image if conversion is enabled

Input can be provided as a binary file or a file ID reference. Text matching supports literal and regex modes with options for whole word matching. The output format depends on conversion settings, and redaction appearance is customizable.

Links

Discussion