open Documents
Opens multiple PDF documents from a list of sources. The documents will be displayed as a single continuous document. Remote Uri's are supported and automatically downloaded.
Note that this method blocks until the document is loaded and should not be invoked on main thread. If you're passing a remote Uri and run this method on the main thread, it will throw a DownloadException.DownloadOnMainThreadException.
Return
PdfDocument instance if the opening succeeded.
Parameters
Application context.
List of DocumentSources describing the sources and passwords of the documents.
Throws
If file was not opened correctly.
If no passwords or a wrong passwords were provided for opening the documents.
If Nutrient was not initialized with com.pspdfkit.Nutrient.initialize.
If trying to open a remote Uri on the main thread.
If anything happened during the download of a remote Uri.