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 utilities grouped under different resources, including PDF operations. Specifically, the PDF Encrypt operation allows users to encrypt a PDF file by applying user and owner passwords. This is useful for securing sensitive PDF documents before sharing or storing them, ensuring that only authorized users can open or modify the file.
Common scenarios include:
- Protecting confidential reports or contracts with passwords.
- Restricting editing or printing permissions on PDFs.
- Automating PDF security in document workflows.
Example: You have a PDF report accessible via a public URL or as a binary buffer, and you want to encrypt it with a user password (for opening) and an owner password (for permissions). The node takes these inputs and outputs the encrypted PDF.
Properties
| Name | Meaning |
|---|---|
| URL | Public URL of the PDF file to encrypt. |
| Buffer | PDF content as a base64-encoded string buffer to encrypt. |
| Get File as URL | Boolean indicating whether the output should be a URL pointing to the resulting PDF instead of raw data. |
| Filename | Desired filename for the output PDF. |
| User Password | Password required to open the encrypted PDF. |
| Owner Password | Password granting full permissions (default is the same as User Password if not specified). |
| Code Variables | (Not relevant for this operation) |
Output
The node outputs JSON data representing the encrypted PDF. Depending on the "Get File as URL" property, the output will either contain:
- A URL pointing to the encrypted PDF file hosted somewhere accessible.
- Or the encrypted PDF as a binary buffer (base64-encoded string).
This allows downstream nodes or workflows to either download the file from the URL or process the binary data directly.
Dependencies
- Requires an API key credential for authentication with the external service providing the PDF encryption functionality.
- The node sends requests to an external API endpoint corresponding to the PDF encrypt operation.
- No other external dependencies are indicated.
Troubleshooting
- Missing or invalid passwords: If user or owner passwords are empty or invalid, the encryption may fail or produce unsecured PDFs. Ensure passwords are provided correctly.
- Invalid input PDF: Providing an incorrect URL or corrupted buffer may cause errors. Verify the PDF source is valid and accessible.
- API authentication errors: If the API key credential is missing or invalid, the node will throw authentication errors. Check credentials configuration.
- Output format issues: If "Get File as URL" is true but the system cannot host the file, the URL may be invalid or inaccessible. Consider using buffer output instead.
Links and References
- n8n Expressions Documentation — for using expressions in variable fields.
- General PDF encryption concepts: https://en.wikipedia.org/wiki/PDF_encryption