# Recognize UPD

Recognition of the document "Universal Transfer Document (UTD)".

Supported formats: `.pdf`, `.png`, `.jpeg`, `.jpg`.

<table data-header-hidden><thead><tr><th width="250" valign="top"></th><th width="303" valign="top"></th></tr></thead><tbody><tr><td valign="top">File path</td><td valign="top"><p>[Text] File path. Supported file formats:</p><ul><li>png;</li><li>jpg;</li><li>pdf.</li></ul><p>The pdf file can be multi-page.</p></td></tr><tr><td valign="top">Page number</td><td valign="top"><p>[Text] Page number in a multi-page pdf file.</p><p>If there is an anchor LastPage, recognition will proceed from the specified number to the page until it is found. If this anchor is not present, only the specified page is recognized.</p></td></tr><tr><td valign="top">Post-processing</td><td valign="top">When enabled, post-processing of data will be performed. For example, extracting INN, KPP.</td></tr><tr><td valign="top">Replace module</td><td valign="top"><p>[Text] Allows replacing the specified module in the template with the one specified in the block during recognition. Possible values:</p><ul><li>TesseractOCR;</li><li>YandexVision;</li><li>MicrosoftOCR;</li><li>AbbyyOCR;</li><li>FineReader;</li><li>OCRSpace.</li></ul></td></tr><tr><td valign="top">Replace scale</td><td valign="top"><p>[Number] A new scale is set during recognition by the template.</p><p>If no value is specified, the scale from the template settings is used; otherwise, the scale specified in this property is applied.</p></td></tr><tr><td valign="top">Attributes</td><td valign="top"><p>[Dictionary] A dictionary with document attributes. For example: "Document Number", "Supplier INN", etc.</p><p>The attributes include the parameter CountPage, which corresponds to the number of pages involved in recognition by the template.</p></td></tr><tr><td valign="top">Data</td><td valign="top">[Data Table] A table containing data from the document.</td></tr><tr><td valign="top">Error handling level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are processed.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>
