imageUrlsFromPdf

open override fun imageUrlsFromPdf(pdfFile: File, outputDir: File, prefix: String, compression: Bitmap.CompressFormat, quality: Int, scaling: Float, bitmapConfig: Bitmap.Config, cancelCallback: LongOperationCancelCallback?, progressCallback: ProgressCallback?): List<Uri>

Converts pdf document to separate image files with given options. If the encryption of sdk is enabled all images WILL be encrypted.

Return

list of uris of jpeg files

Parameters

pdfFile

input pdf document

outputDir

directory, where the output files will be stored

prefix

prefix for output image files, naming will be _.

compression

bitmap compress format to use. JPEG by default

quality

compression quality. 90 by default

scaling

size of the image modifier. 2 by default

bitmapConfig

bitmap config to use. ARGB_8888 by default

cancelCallback

callback that can cancel the operation during the extraction of pages

progressCallback

callback that can get the number of pages already processed during the extraction of pages

Throws

if pdf file is not available.