Methods
ocr.fileToText(file)returns the text.ocr.fileToTable(file)returns rows.ocr.fileToForm(file)returns fields.
async ({ ocr }) => {
const file = /* a File from your input */
return await ocr.fileToText(file)
}file is required. Pass the file you already loaded in the node.