processDocument

abstract fun processDocument(fileStream: InputStream, fileName: String, categories: List<String>, deleteAfterProcessing: Boolean, parameters: JSONObject?, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Process a document and extract all the fields from it

Parameters

fileStream

FileInputStream of the file who contains the document

fileName

Name of the file who contains the document

categories

List of categories Veryfi can use to categorize the document

deleteAfterProcessing

Delete this document from Veryfi after data has been extracted

parameters

Additional request parameters

onSuccess

Async callback in success case.

onError

Async callback in error case.