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


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


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






Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.