How to end processing of a document depending on its number of pages?

Question

How to end processing of documents by deleting them from a batch depending on a document's number of pages?

Answer

  • In Advanced Workflow create a batch processing script stage before recognition:
  • The script may look like this: 
foreach (IDocument doc in Batch.Documents)
{
int pageCnt = doc.Pages.Count;
if (pageCnt >= 2){
Batch.DeleteDocument(doc);
}

}

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed