PdfDocumentLoader

Provides methods to obtain PdfDocument instances.

Functions

Link copied to clipboard
open fun openDocument(@NonNull context: Context, @NonNull documentUri: Uri): PdfDocument
open fun openDocument(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable password: String): PdfDocument
open fun openDocument(@NonNull context: Context, @NonNull source: DocumentSource, multithreadedRenderingEnabled: Boolean): PdfDocument
Opens a PDF document from a Uri.
Link copied to clipboard
open fun openDocumentAsync(@NonNull context: Context, @NonNull documentUri: Uri): Single<PdfDocument>
open fun openDocumentAsync(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable password: String): Single<PdfDocument>
open fun openDocumentAsync(@NonNull context: Context, @NonNull source: DocumentSource, multithreadedRenderingEnabled: Boolean): Single<PdfDocument>
Opens a PDF document from an Uri.
open fun openDocumentAsync(@NonNull context: Context, @NonNull source: DocumentSource): Single<PdfDocument>
Opens a PDF document from a DocumentSource.
Link copied to clipboard
open fun openDocuments(@NonNull context: Context, @NonNull @Size(min = 1) sources: List<DocumentSource>): PdfDocument
open fun openDocuments(@NonNull context: Context, @NonNull @Size(min = 1) sources: List<DocumentSource>, multithreadedRenderingEnabled: Boolean): PdfDocument
Opens multiple PDF document from a list of sources.
Link copied to clipboard
open fun openDocumentsAsync(@NonNull context: Context, @NonNull @Size(min = 1) sources: List<DocumentSource>): Single<PdfDocument>
open fun openDocumentsAsync(@NonNull context: Context, @NonNull @Size(min = 1) sources: List<DocumentSource>, multithreadedRenderingEnabled: Boolean): Single<PdfDocument>
Opens multiple PDF document from a list Uris.