Android
ComPDFKit Conversion SDK
Guides

Convert PDF Documents to Image Documents

 

val cPDFConvert = CPDFConverterImg(context, uri, "")

val params = CPDFConvertImgOptions().apply {
     imgType = ImgType.JPEG
     //imgType = ImgType.PNG
     ...
}

val result: ConvertError = cPDFConvert.convert(outputDir, outputfilename, params, pageArrays, 
onHandle = onHandleCal, 
onProgress = onProgressCal, 
onPost = onPostCal)