Skip to content

Pdf Redaction Action: pdfredaction

The pdfredaction action is used to redact specific text within a PDF file. It provides flexibility to specify the redaction color and save the redacted PDF to a defined destination.

Example: You want to redact all occurrences of the word “Confidential” in a PDF file and save the output to a new file.

Steps to Configure:

  1. Add a new step.
  2. Select Set a Variable Value from the Action dropdown.
  3. Enter a variable name in Element Key (e.g., RedactedPDFPath). This variable will store the path to the redacted PDF file.
  4. Click on Form, select Functions, and choose PDF File Handler Functions.
  5. In the Cmd field, select pdfredaction and provide the following parameters:
    • FPath: Specify the path of the PDF file to be redacted (e.g., C:\Documents\Policy.pdf).
    • Text: Specify the text to be redacted (e.g., Confidential).
    • Destination: Provide the destination file path for the redacted PDF (e.g., C:\Documents\Policy_Redacted.pdf).
    • Color: Select the redaction color from the dropdown options:
      • Black
      • Blue
      • Red
      • Green
  6. Click Save.
scrn-pdf-redaction-command-tabular-view
Tabular View
scrn-pdf-redaction-command-card-view
Card View

Expected Outcome:

  • All specified text is redacted in the PDF using the chosen color.
  • The redacted PDF file is saved to the provided destination.
  • The outcome is stored as true or false in the specified variable.
  • This variable can be referenced in subsequent steps of the automation process using the syntax ${VariableName} (e.g., ${PageNumber}).

Note: The destination file will be overwritten if a file with the same name already exists.

Back To Top