Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
PDF → Decrypt PDF
AI-generatedOverview
The node provides a utility to decrypt encrypted PDF files. It accepts either a public URL pointing to the encrypted PDF or a binary buffer of the PDF file itself, along with the password required for decryption. The decrypted PDF can then be returned either as a downloadable URL or as raw data. This node is useful in scenarios where automated workflows need to process secured PDF documents by removing their encryption, enabling further manipulation, reading, or storage.
Practical examples include:
- Automatically decrypting password-protected invoices or reports received via email before extracting data.
- Decrypting secured PDFs stored on cloud services to enable content indexing or conversion.
- Integrating into document management systems to handle encrypted PDFs seamlessly.
Properties
| Name | Meaning |
|---|---|
| PDF URL | Public URL of the encrypted PDF file to decrypt. |
| PDF Buffer | Binary buffer data of the encrypted PDF file (alternative to URL). |
| Return as URL | Whether to return the decrypted PDF as a downloadable URL (true) or as raw data (false). |
| Password | Password used to decrypt the PDF file. |
| File Name | Desired name for the output decrypted PDF file. |
Output
The node outputs JSON data representing the decrypted PDF. Depending on the "Return as URL" property:
- If
true, the output contains a URL from which the decrypted PDF can be downloaded. - If
false, the output includes the decrypted PDF data directly (likely as binary data).
This allows downstream nodes to either download the decrypted file or process it immediately within the workflow.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node sends a POST request to the
/pdf/decryptendpoint of the 0CodeKit API. - Network access to the provided PDF URL (if using URL input) and to the 0CodeKit API endpoint is necessary.
Troubleshooting
- Incorrect password error: If the password is wrong, the API will fail to decrypt the PDF. Verify the password correctness.
- Invalid PDF input: Providing an invalid URL or corrupted PDF buffer may cause errors. Ensure the PDF source is accessible and valid.
- Network issues: Failure to reach the API endpoint or the PDF URL will result in errors. Check network connectivity and firewall settings.
- Missing API credentials: The node requires a valid API key credential; missing or invalid credentials will prevent execution.
Links and References
- 0CodeKit API Documentation (general base URL referenced)
- PDF encryption and decryption concepts: https://en.wikipedia.org/wiki/PDF_encryption