Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
files → Encrypt a PDF
AI-generatedOverview
The "Encrypt a PDF" operation in the files resource of this n8n node allows you to securely lock a PDF file with a password. This is useful for automating workflows where sensitive documents need to be protected before sharing or storage. For example, you might use this node to encrypt invoices, contracts, or reports before emailing them to clients or uploading them to cloud storage.
Properties
| Name | Meaning |
|---|---|
| Password | A string containing the secret password which will be used to lock (encrypt) the PDF. |
| PDF file | The PDF file to be encrypted. |
| Binary Property | Name of the binary property to which the encrypted PDF data will be written (default: "data"). |
Output
- The output contains a binary field whose name matches the value provided in Binary Property (default:
data). - This binary field holds the encrypted PDF file.
- Any existing binary data on the input item is preserved and merged into the output.
- The
jsonfield is passed through from the input item unchanged unless an error occurs.
Dependencies
- External Service: Requires access to the 1001fx API.
- Credentials: You must configure the
1001fxApicredential in n8n. - Environment: No special environment variables are required beyond standard n8n configuration.
Troubleshooting
Common Issues:
- Missing Credentials: If the
1001fxApicredential is not set up, the node will fail to connect to the service. - Invalid PDF File: If the input file is not a valid PDF, encryption will fail.
- Empty Password: The password property is required; leaving it blank will result in an error.
- Binary Data Not Found: If the specified binary property does not exist on the input item, the node will throw an error.
- Missing Credentials: If the
Error Messages:
"error": "Request failed with status code 400": Indicates invalid input parameters (e.g., missing or incorrect file/password)."error": "Cannot read property 'fileName' of undefined": The specified binary property was not found on the input item."error": "Unexpected token ... in JSON at position ...": The response from the API could not be parsed as JSON, possibly due to a server-side issue.
How to resolve:
- Double-check that all required properties are filled in correctly.
- Ensure the input file is a valid PDF and exists under the correct binary property.
- Verify your API credentials are correct and active.