UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Document Understanding 活动

上次更新日期 2026年4月22日

将文档数字化

UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument

描述

将文档数字化,提取其“文档对象模型”(DOM) 和文本,并将提取内容存储在相应类型的变量中。

备注:

You must assign an OCR engine to this activity by dragging it into the body of the activity. The chosen OCR engine is to be used only if the incoming documents require OCR processing. Visit OCR Engines to check the available OCR engines. The input and output parameters of the selected OCR engine are automatically set by the Digitize Document activity.

项目兼容性

Windows - Legacy | Windows

配置

属性面板

常见

  • “显示名称”- 活动的显示名称。

输入

  • ApplyOcrOnPdf -Establishes if the OCR process should be applied or not to PDF documents. If set to Yes, the OCR is applied to all PDF pages of the document. If set to No, only digitally typed text is extracted. The default value is Auto, determining if the document requires to apply the OCR algorithm depending on the input document.

  • DegreeOfParalelism - Specifies how many, if any, pages to be analyzed in parallel. The -1 value uses the "Number of Cores on the machine - 1". This means that the activity tries to process as many pages in parallel as the number of cores - 1 value, while specifying a positive value uses that specific number of logical processors. By default, this property is set to -1.

    此属性接受不大于LogicalProcessorCount - 1的任何值。

  • DetectCheckboxes - Detects the available check-boxes from the document while digitizing it. The default value is True.

  • DocumentPath - The file path of the document you want to digitize. This field supports only strings and String variables.

    备注:
    • Set the ApplyOcrOnPdf property to Yes for native PDF documents which contain logos, hidden images, or other elements that corrupt the digitization output and might lead to suboptimal extractions and/or classifications.
    • Text extraction from PDF files has been upgraded. This results in an optimized extraction process, where both native and scanned text is retrieved at the same time. The process applies OCR only on the images identified in the PDF file. This improvement is available only when the ApplyOCROnPDF option is set to Auto.
    备注:

    The supported file types for this property field are .png, .jpe, .jpg, .jpeg, .tiff, .tif, and .pdf.

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

  • DocumentObjectModel - The Document Object Model (DOM) of the file, stored in a Document variable. This field supports only Document variables.
  • DocumentText - The text extracted from the specified document. This variable can be subsequently used in the Present Validation Station activity. This field supports only String variables.
    备注:

    Starting with UiPath.IntelligentOCR.Activities package v6.3.0-preview, the Digitize Document activity comes with a default preselected OCR engine, the UiPath® Document OCR engine.

两个输出变量(由于从属而配对)都可以在整个文档处理框架(分类、数据提取、人工验证等)的文档处理中进一步使用。

重要

If the UiPath.IntelligentOCR.Activities package has been updated to v5.1.0, then the ForceApplyOCR parameter has been replaced with the ApplyOcrOnPDF. Here is the compatibility between the old and new parameters:

  • ForceApplyOCR = True is replaced by ApplyOcrOnPDF = Yes;
  • ForceApplyOCR = False is replaced by ApplyOcrOnPDF = Auto;
  • ForceApplyOCR = Empty is replaced by ApplyOcrOnPDF = Auto;
  • ForceApplyOCR = Your defined variable is replaced by ApplyOcrOnPDF = Auto.
备注:

The Digitize Document activity extracts the text from a PDF file and, for complex documents, it applies pre-processing and post-processing algorithms. This activity can be used together with other Document Understanding activities.

文档对象模型

The Document Object Model is captured in a proprietary object. Visit Document Class for more information.

提示:

To successfully digitize and process your documents, consider the following advice:

  • 要成功对图像进行数字化/处理,图像的宽度和高度尺寸应在 50 到 10000 像素之间。系统会拒绝不在此范围内的任何图像,并显示异常消息。如果图像经验证具有前述尺寸且总大小大于 1400 万像素,则系统会将该图像缩小到 1400 万像素,同时保持原先的纵横比(宽度与高度之比)。
  • 通过将倾斜角保持在 +/- 20 度之间,可以获得最佳结果。

使用“数字化文档”活动的示例

Visit Manual validation for digitize documents to check how the Digitize Document activity is used in an example that incorporates multiple activities.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新