1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

files → Decrypt a PDF

AI-generated

Overview

The "Decrypt a PDF" operation in the files resource of this n8n node allows users to unlock password-protected PDF files. This is particularly useful in automated workflows where you need to process, extract, or manipulate content from encrypted PDFs without manual intervention. For example, you might receive encrypted invoices or reports via email and want to automatically decrypt them for further processing or archiving.

Properties

Name Meaning
Password A string containing the secret password which will be used to unlock the PDF.
PDF file The encrypted PDF file to be decrypted.
Binary Property Name of the binary property to which the decrypted PDF data will be written (default: data).

Output

  • Binary Data:
    The node outputs the decrypted PDF as binary data. The binary property name is determined by the "Binary Property" input (default is data).
    • The output item will have a .binary field containing the decrypted PDF.
    • Any existing binary properties on the input item are preserved unless overwritten by the specified binary property name.
  • JSON Field:
    The .json field of the output item remains unchanged from the input, unless an error occurs (in which case it may contain an error message).

Dependencies

  • External Service:
    Requires access to the 1001fx API.
  • API Key:
    You must configure the 1001fxApi credential in n8n.
  • n8n Configuration:
    No additional environment variables are required beyond the API credentials.

Troubleshooting

  • Common Issues:

    • Incorrect Password: If the provided password is incorrect, the PDF cannot be decrypted, and an error will be returned.
    • Invalid File Format: Supplying a non-PDF or corrupted file will result in an error.
    • Missing Binary Data: If the input item does not contain the expected binary property, the node will fail.
  • Error Messages:

    • "error": "Password incorrect" – Ensure the password matches the one used to encrypt the PDF.
    • "error": "File not found" – Check that the binary property name matches the input item's binary key.
    • "error": "Invalid PDF format" – Verify the uploaded file is a valid, encrypted PDF.

Links and References

Discussion