How to catch the moment when a document gets recognized

Question

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

Answer

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)
{
FCTools.ShowMessage(Document.Documentdefinition.Name);
}

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

Comments

0 comments

Please sign in to leave a comment.

Recently viewed