0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

PDF → Decrypt PDF

AI-generated

Overview

The node provides a utility to decrypt encrypted PDF files. It accepts either a public URL pointing to the encrypted PDF or a binary buffer of the PDF file itself, along with the password required for decryption. The decrypted PDF can then be returned either as a downloadable URL or as raw data. This node is useful in scenarios where automated workflows need to process secured PDF documents by removing their encryption, enabling further manipulation, reading, or storage.

Practical examples include:

  • Automatically decrypting password-protected invoices or reports received via email before extracting data.
  • Decrypting secured PDFs stored on cloud services to enable content indexing or conversion.
  • Integrating into document management systems to handle encrypted PDFs seamlessly.

Properties

Name Meaning
PDF URL Public URL of the encrypted PDF file to decrypt.
PDF Buffer Binary buffer data of the encrypted PDF file (alternative to URL).
Return as URL Whether to return the decrypted PDF as a downloadable URL (true) or as raw data (false).
Password Password used to decrypt the PDF file.
File Name Desired name for the output decrypted PDF file.

Output

The node outputs JSON data representing the decrypted PDF. Depending on the "Return as URL" property:

  • If true, the output contains a URL from which the decrypted PDF can be downloaded.
  • If false, the output includes the decrypted PDF data directly (likely as binary data).

This allows downstream nodes to either download the decrypted file or process it immediately within the workflow.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /pdf/decrypt endpoint of the 0CodeKit API.
  • Network access to the provided PDF URL (if using URL input) and to the 0CodeKit API endpoint is necessary.

Troubleshooting

  • Incorrect password error: If the password is wrong, the API will fail to decrypt the PDF. Verify the password correctness.
  • Invalid PDF input: Providing an invalid URL or corrupted PDF buffer may cause errors. Ensure the PDF source is accessible and valid.
  • Network issues: Failure to reach the API endpoint or the PDF URL will result in errors. Check network connectivity and firewall settings.
  • Missing API credentials: The node requires a valid API key credential; missing or invalid credentials will prevent execution.

Links and References

Discussion