Package 

Object DocumentDataReader

    • Method Summary

      Modifier and Type Method Description
      final static Unit init() For internal use by the Docutain SDK only.
      final static Boolean loadFile(String path, String password) This method loads a file from the given path.
      final static Boolean loadFile(String path) This method loads a file from the given path.
      final static Boolean loadFile(Uri uri, String password) This method loads a file from the given Uri.
      final static Boolean loadFile(Uri uri) This method loads a file from the given Uri.
      final static Boolean loadFile(ByteArray bytes, String fileExtension, String password) This method loads a file from the given ByteArray.
      final static Boolean loadFile(ByteArray bytes, String fileExtension) This method loads a file from the given ByteArray.
      final static Boolean setAnalyzeConfiguration(AnalyzeConfiguration analyzeConfiguration) This method sets the analyze configuration.
      final static String analyze() Analyzes the currently loaded document and returns the detected data.
      final static String getText(Integer pageNumber) Detects the text of the currently loaded document and returns it.
      final static String getText() Detects the text of the currently loaded document and returns it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • init

         final static Unit init()

        For internal use by the Docutain SDK only.

      • loadFile

        @JvmOverloads() final static Boolean loadFile(String path, String password)

        This method loads a file from the given path.

        Only paths in internal app directory and it's subdirectories are supported.

        Parameters:
        path - the path pointing to the file to be loaded.
        password - the password if file is encrypted.
      • loadFile

        @JvmOverloads() final static Boolean loadFile(String path)

        This method loads a file from the given path.

        Only paths in internal app directory and it's subdirectories are supported.

        Parameters:
        path - the path pointing to the file to be loaded.
      • loadFile

        @JvmOverloads() final static Boolean loadFile(Uri uri, String password)

        This method loads a file from the given Uri.

        Parameters:
        uri - the content Uri pointing to the file to be loaded.
        password - the password if file is encrypted.
      • loadFile

        @JvmOverloads() final static Boolean loadFile(Uri uri)

        This method loads a file from the given Uri.

        Parameters:
        uri - the content Uri pointing to the file to be loaded.
      • loadFile

        @JvmOverloads() final static Boolean loadFile(ByteArray bytes, String fileExtension, String password)

        This method loads a file from the given ByteArray.

        Parameters:
        bytes - the ByteArray of the file to be loaded.
        fileExtension - the extension of the file to be loaded, e.g.
        password - the password if file is encrypted.
      • loadFile

        @JvmOverloads() final static Boolean loadFile(ByteArray bytes, String fileExtension)

        This method loads a file from the given ByteArray.

        Parameters:
        bytes - the ByteArray of the file to be loaded.
        fileExtension - the extension of the file to be loaded, e.g.
      • analyze

         final static String analyze()

        Analyzes the currently loaded document and returns the detected data.

      • getText

        @JvmOverloads() final static String getText(Integer pageNumber)

        Detects the text of the currently loaded document and returns it.

        Parameters:
        pageNumber - number of the page you want the text from or -1 to get text of entire document