pagesFromPdf

open override fun pagesFromPdf(pdfFile: File, scaling: Float, bitmapConfig: Bitmap.Config, cancelCallback: LongOperationCancelCallback?, progressCallback: ProgressCallback?): List<String>

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

Return

list of imported page ids

Parameters

pdfFile

input pdf document

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