0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

AI → Redact Sensitive Information From PDF

AI-generated

Overview

This node operation allows users to redact sensitive information from PDF documents using AI. It supports inputting the PDF either via a URL or a buffer, specifying the sensitive content to be redacted through a descriptive prompt, and setting the language of the document. Users can also specify the output file name and choose whether to receive the redacted file as a URL. This is useful for scenarios where confidential or sensitive data needs to be automatically identified and obscured in PDF files, such as redacting personal information, proprietary data, or any content defined by the user.

Use Case Examples

  1. Automatically redact all instances of a company name or personal identifiers in a PDF before sharing it externally.
  2. Redact sensitive financial or legal information from documents by specifying keywords or patterns in the context prompt.

Properties

Name Meaning
URL The URL to the PDF document to be processed.
Buffer The buffer content of the PDF document to be processed.
Context A prompt describing what content inside the file should be considered sensitive and redacted.
File Name The desired file name for the redacted PDF output.
Language The language of the document to assist in accurate redaction.
Get File as URL Whether to get the redacted file as a URL or not.
Code Variables Variables defined in the code editor that can be used within the function for dynamic values.

Output

JSON

  • redactedFileUrl - URL of the redacted PDF file if 'Get File as URL' is true.
  • redactedFileBuffer - Buffer content of the redacted PDF file if 'Get File as URL' is false.

Dependencies

  • Requires an API key credential for the CodeKit API to perform the redaction operation.

Troubleshooting

  • Ensure the URL or buffer input is a valid PDF document; invalid inputs may cause errors.
  • The 'Context' prompt must clearly describe the sensitive content to be redacted; vague descriptions may lead to incomplete redaction.
  • If 'Get File as URL' is true, ensure the system can access the returned URL to download or use the redacted file.
  • API request failures may occur due to network issues or invalid API credentials; verify connectivity and credentials.

Discussion