exportPages

abstract fun exportPages(@NonNull context: Context, @NonNull outputStream: OutputStream, @NonNull pageIndexes: Set<Integer>, @Nullable options: DocumentSaveOptions): Completable

Exports selected pages to an output stream.

Scheduler:
exportPages(OutputStream, Set<Integer>, DocumentSaveOptions) does not operate by default on a particular Scheduler.

Return

Completable that finishes once page exporting is done.

Parameters

context

The context to use.

outputStream

Output stream where the pages will be exported.

pageIndexes

Page indexes to export, may not be empty.

options

Document saving options, default saving options will be used when null