convertToPdfAsync

suspend fun convertToPdfAsync(): File

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

Return

File with the converted PDF.

Throws

if the conversion failed.


suspend fun convertToPdfAsync(outputFile: File)

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

Parameters

outputFile

Output file to write the converted PDF to.

Throws

if the conversion failed.