UiPath Documentation
activities
latest
false
Document Understanding 活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

文档脱敏

文档脱敏活动,通过应用提取结果和指定的单词脱敏来生成脱敏 PDF。

UiPath.IntelligentOCR.Activities.Redaction.RedactDocument

描述

“文档脱敏”活动根据原始输入 PDF(以 “文档路径”形式提供)、“提取结果”“要脱敏的单词”输入字段生成脱敏的 PDF。

“文档脱敏”活动使用文档对象模型来访问 PDF 中标识的所有单词的位置,而“提取结果”“要脱敏的单词”字段则用作应脱敏数据的输入,如下所示:

  • 为了密文目的, “要脱敏的单词”输入数组中的每个条目都被视为一个字符串,用于不区分大小写的连续搜索。
  • 系统将根据此参考值(包括作为值参考的客户区域选择)对具有引用的提取结果值进行脱敏。常规字段和表格单元格均已脱敏。
  • 缺少引用(添加时未引用对“需要引用”设置为“False”的字段)的提取结果值的视为与“要脱敏的单词”字段中的条目类似。这意味着在输入文档中找到该特定文本的所有出现都将被脱敏。

该活动使用文档对象模型搜索词,并且模糊匹配不可用。

您可以控制密文的显示方式。默认情况下,每个已编辑区域都用填充框覆盖。“密文选项”输入(预览版)添加了对此外观的每个字段的控件,包括填充框或删除线样式、自定义填充和边框颜色和不透明度,以及在每个密文区域上显示的密文代码标签。有关详细信息,请参阅RedactionOptions类。

为了处理高度敏感的文档,我们强烈建议对提取结果执行人工验证,并使用基于引用的值和选择。这可确保全面审核需要密文的所有数据,从而最大程度地减少出现 OCR 错误或词序问题影响最终密文输出的机会。

项目兼容性

Windows

配置

设计器面板

输入
  • 文档路径(公开预览):要脱敏的文档的路径。
  • 文档对象模型 (已记录)从“数字化文档”活动获得的输入的文档对象模型。
  • 提取结果(可选):数据提取流程的提取结果,存储在ExtractionResult变量中。您可以从“数据提取作用域”活动中检索此内容。
  • 要脱敏的单词(可选):除了来自“提取结果”输入字段的数据之外,还要脱敏的字符串列表。
  • 输出文件:要保存脱敏 PDF 的输出文件路径。

属性面板

常见
  • “显示名称” :活动的显示名称。
输入
  • 文档路径(公开预览):要脱敏的文档的路径。
  • 文档对象模型 (已记录)从“数字化文档”活动获得的输入的文档对象模型。
  • 提取结果(可选):数据提取流程的提取结果,存储在ExtractionResult变量中。您可以从“数据提取作用域”活动中检索此内容。
  • 要脱敏的单词(可选):除了来自“提取结果”输入字段的数据之外,还要脱敏的字符串列表。
  • 输出文件:要保存脱敏 PDF 的输出文件路径。
其他
  • “私有 ” :选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • 输出文件(字符串) :包含已编辑信息的输出文件。
脱敏设置
  • Border color: The color of the border used for redaction.
  • Border thickness: The thickness of the border used for redaction.
  • Dpi(可选) :表示嵌入在脱敏 PDF 中的图像质量的每英寸点数值。
  • Fill color: The fill color used for redaction.
  • Redaction code (preview): The default text to draw over each redaction that does not define its own redaction code. To split the text across multiple lines, use \n where you want a line break, for example REDACTED\nCONFIDENTIAL. To display a literal backslash, type it twice, as in C:\\temp\\notes. The text is resized automatically to fit inside the redaction box.
  • Redaction code font color (preview): The default hex color of the redaction code text, used for any redaction that does not define its own font color.
  • Redaction code font size (preview): The default font size of the redaction code text, used for any redaction that does not define its own font size. Use 0 to auto-fit the text to the redaction box.
  • Redaction options (preview): Per-field redaction settings that override the global redaction appearance. Each entry uses a field id to style that field's redactions, or an empty field id to style the Words To Redact matches. Fields without a matching entry use the global FillColor, BorderColor, and BorderThickness values. For details, see the RedactionOptions class.
备注:

The Redaction code, Redaction code font color, and Redaction code font size properties set the defaults for the whole document. They apply to every redaction that does not already define its own value, including fields, table cells, and Words To Redact matches. Each one is applied independently, so a field keeps the values you set for it, and uses the defaults only for the values you left empty.

  • 描述
  • 项目兼容性
  • 配置
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新