Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
The node provides a variety of PDF-related utilities under the "PDF" resource, including the ability to decrypt PDF files. The "Decrypt" operation specifically allows users to remove password protection from encrypted PDF documents by providing the correct password. This is useful in workflows where automated processing or extraction of data from secured PDFs is required without manual intervention.
Practical examples include:
- Automatically decrypting incoming encrypted PDF invoices or reports before further processing.
- Removing password protection from PDFs stored in cloud storage to enable indexing or text extraction.
- Integrating with document management systems that require decrypted PDFs for compliance checks or archival.
Properties
| Name | Meaning |
|---|---|
| Code Variables | A collection of code variables defined in the code editor, each with a variable name/ID and value. Useful for dynamic scripting within the node. |
| URL | Public URL of the PDF file to be decrypted. |
| Buffer | Raw buffer content of the PDF file to be decrypted. |
| Get File as URL | Boolean flag indicating whether the output PDF should be returned as a URL (true) or as raw data (false). |
| Filename | Desired filename for the output PDF file. |
| The Password | Password string used to decrypt the encrypted PDF. |
Output
The node outputs JSON data representing the result of the decryption operation. Typically, this includes either:
- A URL pointing to the decrypted PDF file if "Get File as URL" is set to true.
- The raw binary data of the decrypted PDF if "Get File as URL" is false.
The output JSON structure will contain fields relevant to the decrypted PDF content, such as the file data or URL, and possibly metadata like the filename.
If binary data is output, it represents the decrypted PDF file content ready for downstream use or storage.
Dependencies
- Requires an API key credential for authentication with the external service providing the PDF utilities.
- The node depends on an external API endpoint that performs the actual PDF decryption.
- Network access to the provided PDF URL or the ability to handle PDF buffers is necessary.
- No additional local dependencies are indicated.
Troubleshooting
- Incorrect Password Error: If the provided password is wrong, the API may return an error indicating decryption failure. Verify the password correctness.
- Invalid PDF Input: Supplying a non-PDF file or corrupted PDF buffer/URL can cause errors. Ensure the input is a valid encrypted PDF.
- Network Issues: If using a URL, network connectivity problems or inaccessible URLs will prevent successful decryption.
- Output Format Confusion: Setting "Get File as URL" incorrectly may lead to unexpected output formats. Confirm the desired output type matches downstream requirements.
- Missing Credentials: Failure to provide the required API key credential will block the operation.
Links and References
- n8n Expressions Documentation — For using expressions in variable names or IDs.
- External API documentation (not included here) for the PDF decryption service would provide more details on supported features and error codes.