open Document
Opens an image document from a Uri. Note that currently only local files are supported and passing remote or non-file Uris will throw an java.io.IOException.
Note that this method blocks until the image document is loaded and should not be invoked on main thread.
Return
ImageDocument instance if the opening succeeded.
Parameters
Application context.
Uri pointing to the PDF document.
Throws
If file was not opened correctly.
If PSPDFKit was not initialized with com.pspdfkit.PSPDFKit.initialize call.
Opens an image document from a Uri. Note that currently only local files are supported and passing remote or non-file Uris will throw an java.io.IOException.
Note that this method blocks until the image document is loaded and should not be invoked on main thread.
Return
ImageDocument instance if the opening succeeded.
Parameters
Application context.
DocumentSource describing the source of the image document.
Throws
If file was not opened correctly.
If PSPDFKit was not initialized with com.pspdfkit.PSPDFKit.initialize call.