PDF Utils icon

PDF Utils

Inspect, split, and decrypt PDF files

Decrypt

AI-generated

Summary

Decrypt a password-protected PDF binary file using the provided password and output the decrypted PDF as a new binary property.

Inputs

  • Binary Property (required) — The name of the binary property containing the encrypted PDF file to decrypt.
  • Password (required) — The user or owner password used to decrypt the PDF.
  • Output Binary Property — The name of the output binary property where the decrypted PDF will be stored (default is 'data').

Output shape

a single item per input with a JSON object and a binary property containing the decrypted PDF file

If the PDF cannot be decrypted due to wrong password or missing qpdf tool, the node throws an error unless 'continue on fail' is enabled. The output binary filename appends '_decrypted.pdf' to the original file name if available.

Examples

Example 1: Decrypt an encrypted PDF stored in binary property 'data' with password 'mypassword' and output decrypted PDF in binary property 'data'

Set 'Binary Property' to 'data', 'Password' to 'mypassword', and keep 'Output Binary Property' as 'data'.

Links

Discussion