set Document From Data Providers
open fun setDocumentFromDataProviders(@NonNull dataProviders: List<DataProvider>, @Nullable passwords: List<String>)
Loads a new document in this pdf UI and replaces the existing one. This method may only be called if onSaveInstanceState has not been called or an exception will be thrown, since after that call state loss could occur.
Parameters
data Providers
List of data providers for compound document.
passwords
List of passwords for compound document, may be null.