open Document Async
Opens an image document from a Uri. Remote Uri's are supported and automatically downloaded.
The returned {@link Single} may fail with a {@link DownloadException} if anything happened during the download of a remote Uri.
Return
Single observable returning an ImageDocument instance if the opening succeeded.
Parameters
Application context.
Uri pointing to the PDF document.
Throws
If PSPDFKit was not initialized with com.pspdfkit.PSPDFKit.initialize call.
Opens an image document from a Uri. Remote Uri's are supported and automatically downloaded.
The returned {@link Single} may fail with a {@link DownloadException} if anything happened during the download of a remote Uri.
Return
Single observable returning an ImageDocument instance if the opening succeeded.
Parameters
Application context.
DocumentSource describing the source of the image document.
Throws
If PSPDFKit was not initialized with com.pspdfkit.PSPDFKit.initialize call.