PdfiumPdfPagesExtractor

Allows to import pdf files to Scanbot SDK as pages or extract image files. Based on Pdfium library.

Parameters

fileIOProcessor

for handling sdk file encryption process.

pageFileStorage

page file storage to add pages to

Constructors

Link copied to clipboard
constructor(pageFileStorage: PageFileStorage, fileIOProcessor: FileIOProcessor, context: Context)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
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.