CreateTextFile (deprecated)

Creates a Text file (.txt) for the current page; adds the page's recognized values to the file; and places the file in the current batch, in your application's Batches directory. This action has been deprecated and is now replaced by action CreateTextFile action in SharedRecognitionTools action library.

Member of namespace

Recog_Shared

Syntax

bool CreateTextFile ()

Parameters

None.

Returns

False if the ruleset with this action is not bound to a Page object of the Document Hierarchy, or if an Image file for the current page is not available. Otherwise, True.

Level

Page only.

Details

This action creates a UTF-8 encoded Text file (.txt) for the current page; adds the page's recognized values to the file; and places the file in the current batch, in your application's Batches directory.
Attention: The Text file generated by this action is handy for debugging purposes, to see what recognition is placing into the page's Fingerprint file (.cco) file. The action should follow a full-page recognition action such as RecognizePageOCR_S, in a rule that is applied to a Page object of the Document Hierarchy.
Example
RecognizePageOCR_S()
CreateTextFile()
SetProblemValue(0.7)
SetSearchArea(0.5)
FindFingerprint(True)

After the full-page recognition action (RecognizePageOCR_S), the CreateTextFile() action places the recognized values into a Text file that it has set up for the page, and adds the file to the current batch, in the Batches directory of the application.

The text file that is created has the same filename as the image, but is assigned a .txt filename extension.