Skip to main content


Command Description

Get specified form information and return an object. The object is two-dimensional array

Command Prototype

objTableData = Mage.ExtractSingleTable(jsonRet, talbe_id)

Parameter Description

jsonRetTrueexpressionjsonRetOutput variables from "Screen Form OCR", "Image Form OCR", "PDF Form OCR"
talbe_idTruenumber0Specify the form index (starting from 0) in the form OCR result


objTableData,The variable used to save the output of the command.


Dim jsonRet=''  // Table recognition result, you need to use the result of self-recognizing the specified picture for assignment 

TracePrint "--------------------Get the specified form--------------------"
// --------------------------------------------------------
// [Remarks] Get the specified form
// Input parameter 1:
// jsonRet--table recognition result
// Input parameter 2:
// talbe_id--table index

// Output parameters:
// objTableData: The variable to which the output of the function call is saved

// Command prototype: objTableData = Mage.ExtractSingleTable(jsonRet, talbe_id)
// --------------------------------------------------------

objTableData = Mage.ExtractSingleTable(jsonRet, 0)