How many pages count the Engine charges for the current processed document?

Question

What is the Engine's method to find out how many pages count the Engine charges for the currently processed document?

Answer

Before you call either the Analyze or Recognize or Process method, add this snippet to retrieve the current pages count of your license:

CSafePtr<ILicense> license = 0;
int currPages = 0;
CheckResult(license->get_VolumeRemaining(LCT_Pages, &currPages));

Then after you call either any of the methods Analyze/Recognize/Process, then call this snippet again

int currPages2 = 0;
CheckResult(license->get_VolumeRemaining(LCT_Pages, &currPages2));
int pagesCount = currPages - currPages2;   // this will return the pages count that Engine charges for your document

 

mceclip0.png

 

 

 

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