convertToPdfAsync

fun convertToPdfAsync(): Single<File>

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

This method operates asynchronously on the Schedulers.io scheduler.

Return

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


fun convertToPdfAsync(outputFile: File): Completable

Performs HTML-to-PDF conversion to specified file.

This method operates asynchronously on the Schedulers.io scheduler.

Return

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

Parameters

outputFile

Output file to write converted PDF.