Get-Number-of-Forms
Command Description
Get the number of all Forms (excluding non-table text), return number
Command Prototype
iRet = Mage.ExtractTablesNum(jsonRet)
Parameter Description
| Parameter | Required | Type | Default | Description | 
|---|---|---|---|---|
| jsonRet | True | expression | jsonRet | Output variables from "Screen Form OCR", "Image Form OCR", "PDF Form OCR" | 
return
iRet,The variable used to save the output of the command.
Demo
Dim jsonRet=''  // Table recognition result, you need to use the result of self-recognizing the specified picture for assignment 
 
TracePrint "--------------------Get the number of sheets--------------------" 
// -------------------------------------------------------- 
// [Remarks] Get the number of tables 
//  Input parameters: 
//     jsonRet--table recognition result 
 
//  Output parameters: 
//     iRet: The variable to which the output of the function call is saved 
 
// Command prototype: iRet = Mage.ExtractTablesNum(jsonRet) 
// -------------------------------------------------------- 
 
iRet  Mage.ExtractTablesNum(jsonRet) 
TracePrint(iRet)