open Document Async
Opens a PDF document from an Uri. Note that currently only local files are supported and passing remote or non-file Uris will return a java.io.IOException. If the document being opened is password protected, the returned Single will fail with an . To open password protected documents use openDocumentAsync instead.
Return
Observable which returns a single opened document when called successfully
Parameters
Application context
Uri pointing to the PDF document.
Throws
if PSPDFKit was not initialized with initialize call.
Opens a PDF document from an Uri. Note that currently only local files are supported and passing remote or non-file Uris will return a java.io.IOException. The returned Single may fail with a InvalidPasswordException if no password or a wrong password was provided for opening the document.
Return
Observable which returns a single opened document when called successfully
Parameters
Application context
Uri pointing to the PDF document.
PDF document password, may be null
.
Throws
if PSPDFKit was not initialized with initialize call.
Opens a PDF document from a DocumentSource. The returned Single may fail with a InvalidPasswordException when trying to open a password protected document.
Return
Observable which returns a single opened document when called successfully
Parameters
Application context
DocumentSource of the document.
Throws
if PSPDFKit was not initialized with initialize call.
Opens a PDF document from an Uri. Note that currently only local files are supported and passing remote or non-file Uris will return a java.io.IOException.
Return
Observable which returns a single opened document when called successfully
Parameters
Application context
DocumentSource of the document.
Whether the multithreaded rendering should be enabled when rendering document pages.
Throws
if PSPDFKit was not initialized with initialize call.