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
output Dir
output path
output Filename No Suffix
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
page Arrays
Array of page numbers, such as 1,2,…,5
on Handle
Task start callback function
on Progress
Task in progress callback function
on Post
Task end callback function