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
AI → Redact Sensitive Information From PDF
AI-generatedOverview
The "Redact Sensitive Information From PDF" operation in the AI resource of this node allows users to automatically identify and redact sensitive content within a PDF file. By providing a descriptive prompt that defines what should be considered sensitive, the node processes the input PDF and produces a redacted version where the specified sensitive information is obscured or removed.
This functionality is particularly useful in scenarios such as:
- Preparing documents for public release by removing confidential data.
- Complying with privacy regulations by redacting personal identifiers.
- Sharing contracts or reports without exposing proprietary or sensitive terms.
For example, a user might specify a context like "All information that have the words Adobe in it" to redact any mention of "Adobe" within the PDF.
Properties
| Name | Meaning |
|---|---|
| Context | A textual prompt describing what content inside the PDF should be treated as sensitive data. For example, specifying keywords or patterns to redact. |
| Get File as URL | Boolean option to determine if the output PDF should be returned as a downloadable URL (true) or as binary data (false). Default is true. |
| File Name | The desired filename for the resulting redacted PDF. If left empty, a random ID will be used as the filename. |
Output
The node outputs a JSON object containing the processed PDF file:
- If Get File as URL is set to
true, the output includes a URL pointing to the redacted PDF file, which can be accessed or downloaded externally. - If Get File as URL is
false, the output contains the PDF file as binary data, suitable for further processing or direct saving within n8n workflows.
The exact structure typically includes fields such as:
{
"json": {
"url": "https://example.com/path/to/redacted.pdf"
},
"binary": {
"data": {
"data": "<base64-encoded-pdf-content>",
"mimeType": "application/pdf",
"fileName": "redacted.pdf"
}
}
}
depending on the chosen output mode.
Dependencies
- Requires an API key credential for authenticating requests to the external 0CodeKit service endpoint.
- The node sends a POST request to the
/ai/redact-pdfendpoint of the 0CodeKit API. - The input PDF must be provided either as a URL or as binary data within the workflow.
- Proper network connectivity to
https://prod.0codekit.comis necessary.
Troubleshooting
Common Issues:
- Missing or invalid API authentication token may cause authorization errors.
- Incorrect or vague context prompts might lead to incomplete or inaccurate redaction.
- Providing neither a valid file URL nor binary data will result in failure to process the PDF.
- Network issues or API downtime could prevent successful requests.
Error Messages:
- Authorization errors indicating invalid credentials: Verify the API key configuration.
- Validation errors about missing required parameters (e.g., context or file): Ensure all mandatory inputs are correctly set.
- File format errors if the input is not a valid PDF: Confirm the input file is a proper PDF document.
- Timeout or connection errors: Check internet connectivity and API service status.
Links and References
- 0CodeKit API Documentation (for general API usage and endpoints)
- General information on PDF redaction best practices and compliance guidelines (external resources depending on user needs).