Actions21
- Document Actions
- PDF Service Actions
- Template Actions
- Workspace Actions
PDF Service → Decrypt Document
AI-generatedOverview
This node operation decrypts an encrypted PDF document using a provided password. It supports input PDFs either from a public URL or as base64 encoded content. The decrypted PDF can be returned in various output formats including base64 JSON, binary file data, or a download URL. This operation is useful for workflows that need to access or process secured PDF files by removing password protection.
Use Case Examples
- Decrypt a PDF document from a public URL by providing the URL and the decryption password, then receive the decrypted PDF as a base64 string in JSON format.
- Decrypt a base64 encoded PDF content by supplying the base64 string and password, and get the decrypted PDF as a downloadable binary file.
- Use the decrypted PDF URL output to provide a link for downloading the decrypted document.
Properties
| Name | Meaning |
|---|---|
| PDF Source | Specifies the source of the PDF document to decrypt, either from a public URL or from base64 encoded content. |
| PDF URL | The public URL to the encrypted PDF document to decrypt. Required if PDF Source is 'From URL'. |
| PDF Base64 | The base64 encoded content of the encrypted PDF document to decrypt. Required if PDF Source is 'From Base64'. |
| Output Format | The format in which the decrypted PDF document is returned: as a base64 string in JSON, as a binary file for download, or as a URL in JSON. |
| Password | The password used to decrypt the encrypted PDF document. |
Output
Binary
If the output format is set to 'File (Binary)', the node outputs the decrypted PDF as binary data suitable for download or further binary processing.
JSON
success- Indicates whether the decryption operation was successful.operation- The operation performed, which is 'decrypt' in this case.format- The output format of the decrypted PDF (base64, file, or url).filename- The filename of the decrypted PDF when output as a file.fileSize- The size of the decrypted PDF file in bytes.base64- The base64 encoded string of the decrypted PDF when output format is base64.url- The download URL of the decrypted PDF when output format is URL.
Dependencies
- Requires an API key credential for the PDF Generator API service to authenticate requests.
Troubleshooting
- Ensure the provided password is correct; an incorrect password will cause decryption to fail.
- If using 'From URL' as the PDF source, verify that the URL is publicly accessible and points to a valid encrypted PDF.
- If using 'From Base64', ensure the base64 string is correctly encoded and represents a valid encrypted PDF document.
- Check the output format setting to match the expected usage (e.g., base64 for JSON workflows, file for binary downloads).
- Common error messages include invalid JSON input for base64 content, unsupported operation for the resource, or authentication errors due to missing or invalid API credentials.
Links
- PDF Generator API - Decrypt Document - Official API documentation for the decrypt document operation in the PDF Generator API.