Skip to main content

Text Recognition

After a successful scan or import of a document, you can get the detected text of the entire document or single pages.

Docutain's iOS SDK needs to be initialized prior to using any functionality of it as described here.


In order to get the detected text of the entire document, call the following line of code:

import DocutainSdk

...
//scan or import file
...

let text = DocumentDataReader.getText()

In order to get the detected text of a specific page, specify the page number:

let text = DocumentDataReader.getText(pageNumber: 1)