Pdfium Pdf Images Extractor
Allows extract image files from the imported pdf files. Based on Pdfium library.
Inheritors
Functions
Link copied to clipboard
open override fun extract(pdfFile: File, processingCallback: PdfImagesExtractor.PdfImageExtractingCallback): Result<Unit>
Extracts and processes images from PDF document with custom processing logic and continuation control. Processing stops when the callback returns false or all pages are processed.
open override fun extract(pdfFile: File, cancelCallback: LongOperationCancelCallback?, progressCallback: ProgressCallback?, processingCallback: PdfImagesExtractor.PdfImageProcessingCallback?): Result<List<ImageRef>>
open override fun extract(pdfFile: File, outputDir: File, prefix: String, compression: Bitmap.CompressFormat, quality: Int, scaling: Float, bitmapConfig: Bitmap.Config, cancelCallback: LongOperationCancelCallback?, progressCallback: ProgressCallback?, processingCallback: PdfImagesExtractor.PdfImageProcessingCallback?): Result<List<Uri>>
Converts pdf document to separate image files with given options. If the encryption of sdk is enabled all images WILL be encrypted.