convertToPdfAsync

open fun convertToPdfAsync(): Single<File>

Performs HTML-to-PDF conversion to a temporary file in 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 HTML-to-PDF conversion to 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 converted PDF.