openDocumentsAsync

fun openDocumentsAsync(context: Context, @Size(min = 1) sources: List<DocumentSource>): Single<PdfDocument>

Opens multiple PDF documents from a list of Uris. The documents will be displayed as a single continuous document. Remote Uri's are supported and automatically downloaded. The returned Single will fail with an InvalidPasswordException when trying to open a password protected document with no or a wrong password. To specify a password, create the DocumentSource instances using one of the constructors taking a password. It may also fail with a DownloadException if anything happened during the download of a remote Uri.

Return

Observable which returns a compound document when called successfully.

Parameters

context

Application context.

sources

List of DocumentSources for this document.

Throws