How to use Repair() Method in FlexiCapture 11

Question

How to use Repair() Method in FlexiCapture 11?

 

Answer

IDocument Repair() updates the Document Definition to the latest version without requiring re-recognition.

 

It is not a full equivalent of the Update to The Latest Version option from the context menu as this method doesn't launch recognition.

 

Example script:

foreach (IDocument doc in Batch.Documents)
{
    doc.Repair();
}

 

Please note that this script will work in the following conditions:

  1. You are verifying the full batches.
  2. You do not use the document sets.

Otherwise, the script needs modifications.

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.