Skip to main content

Decrypt

Removes password protection from an encrypted PDF document.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • PDF File Path - The path to the encrypted PDF file that needs to be decrypted.

Options

  • Output Path - The path where the decrypted PDF will be saved. If not specified, the original file will be overwritten.
  • Password - The password of the encrypted PDF document.

Output

  • result - The result of the decryption operation.

How It Works

The Decrypt node removes password protection from an existing PDF document. When executed, the node:

  1. Validates that the input PDF path is not empty
  2. Retrieves the password
  3. Loads the encrypted PDF document using the provided password
  4. Removes all security from the PDF document
  5. Saves the decrypted PDF to the specified location or overwrites the original
  6. Closes the document

Requirements

  • A valid encrypted PDF file path
  • The correct password
  • Sufficient permissions to read the input file and write to the output location

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid PDF File Path
  • Incorrect password
  • File I/O errors
  • PDF processing errors

Usage Notes

  • The node requires the correct password to decrypt the PDF
  • If no output path is specified, the original file will be overwritten
  • The decrypted PDF will have all security restrictions removed