convertToPdfAsync

open fun convertToPdfAsync(): Single<File>

Performs Office-to-PDF conversion to a temporary file in the application's cache directory.

This method operates asynchronously on the io scheduler.

Return

Single emitting file with the converted PDF or an error if conversion failed.


open fun convertToPdfAsync(@NonNull outputFile: File): Completable

Performs Office-to-PDF conversion to the specified file.

This method operates asynchronously on the io scheduler.

Return

Completable emitting completion if PDF conversion finished or an error if conversion failed.

Parameters

outputFile

Output file to write the converted PDF to.