How to catch the moment when a document gets recognized


I need to know when the document gets recognized for custom logging purposes. How to achieve this?


It can be done with the help of Project > Properties > Event Handlers > After document state changed script:

Below is a sample piece of code that needs to be adjusted based on particular requirements:

if (ChangedStates.Has(2) && Document.IsRecognized)

Note: the event handler will not be triggered if the document was already recognized. In this case, before re-recognition, it is required to clear analysis results. It also does not work with web stations.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.