setDocumentImageSizeLimit

fun setDocumentImageSizeLimit(documentImageHeightLimit: Int, documentImageWidthLimit: Int)

Document image size limit. Should be positives Ints. Means that if the document size will be bigger than a limit, then it will be downscaled with keeped aspectRatio. By default the limit is Int.MAX_VALUE, so there are no scaling.