convert

open fun convert(outputDir: String, outputFilenameNoSuffix: String, options: CPDFConvertOptions = CPDFConvertOptions(), pageArrays: IntArray? = null, onHandle: (objptr: Long) -> Unit? = null, onProgress: (current: Int, total: Int) -> Unit? = null, onPost: (code: ConvertError, outFilePath: String?) -> Unit? = null): ConvertError

Starts the conversion.

Return

Returns ERR_SUCCESS means success, otherwise it means failure.

Parameters

outputDir

output path

outputFilenameNoSuffix

The filename of the output file, the default pass "" adopts the built-in naming rules

options

The derived class parameter of the specified conversion CPDFConvertOptions

pageArrays

Array of page numbers, such as 1,2,…,5

onHandle

Task start callback function

onProgress

Task in progress callback function

onPost

Task end callback function