CloudConvert
Use CloudConvert to convert files, create thumbnails, merge files, add watermarks and more!
Actions51
- File Actions
- Metadata Actions
- PDF Actions
- Add PDF OCR Layer
- Decrypt PDF
- Merge Files
- Decrypt PDF
- Merge Files
- Split PDF Into Pages
- Convert PDF to PDF/A
- Extract Pages From PDF
- Split PDF Into Pages
- Convert PDF to PDF/A
- Encrypt PDF
- Extract Pages From PDF
- Rotate PDF Pages
- Split PDF Into Pages
- Add PDF OCR Layer
- Convert PDF to PDF/A
- Encrypt PDF
- Extract Pages From PDF
- Rotate PDF Pages
- Add PDF OCR Layer
- Decrypt PDF
- Encrypt PDF
- Merge Files
- Rotate PDF Pages
- Command Actions
- Website Actions
Overview
This node operation encrypts a PDF file using CloudConvert's API. It allows users to set a password required to open the PDF, an owner password for permissions, and specify restrictions such as allowing content extraction, accessibility features, modification, and printing. This is useful for securing PDF documents by controlling access and usage rights, for example, protecting sensitive reports or confidential documents before sharing.
Use Case Examples
- Encrypt a PDF file by setting a user password and restricting printing and modification rights.
- Add an owner password to a PDF to allow removal of protections by authorized users.
- Allow screen readers to access the PDF content while preventing content extraction and printing.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating with CloudConvert API, either OAuth2 or API Key. |
| Binary Input Data | Whether the input PDF file is provided as binary data. |
| Input File Contents | The text content of the PDF file to upload, used if binary input data is false. |
| Binary Property | Name of the binary property containing the PDF file data, used if binary input data is true. |
| Set Password | Password required to open the encrypted PDF file. |
| Set Owner Password | Owner password used for permissions; allows removal of all protections. |
| Allow Extract | Whether to allow extracting content from the PDF. |
| Allow Accessibility | Whether to allow accessibility features such as screen readers. |
| Allow Modify | Level of modification allowed for the PDF (e.g., 'form'). See CloudConvert docs for valid values. |
| Allow Print | Level of printing allowed for the PDF (e.g., 'full'). See CloudConvert docs for valid values. |
Output
JSON
data- The encrypted PDF file data in binary form.jsonstatus- Status of the encryption operation.message- Additional message or error information from the operation.
Dependencies
- CloudConvert API
Troubleshooting
- Ensure the input PDF file is correctly provided either as binary data or text content depending on the 'Binary Input Data' setting.
- Verify that the passwords set meet the CloudConvert API requirements and are not empty if encryption is desired.
- Check that the CloudConvert API credentials (OAuth2 or API Key) are valid and have the necessary permissions.
- If the operation fails, the node may return an error message indicating invalid operation or API errors; review the error message for details and adjust parameters accordingly.
Links
- CloudConvert API Documentation - Official API documentation for CloudConvert, including PDF encryption options and parameters.