CloudConvert icon

CloudConvert

Use CloudConvert to convert files, create thumbnails, merge files, add watermarks and more!

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

  1. Encrypt a PDF file by setting a user password and restricting printing and modification rights.
  2. Add an owner password to a PDF to allow removal of protections by authorized users.
  3. 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.
  • json
    • status - 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

Discussion