Package io.scanbot.sdk.pdf
Class PdfiumPdfPagesExtractor
-
- All Implemented Interfaces:
-
io.scanbot.sdk.docprocessing.PdfPagesExtractor
,io.scanbot.sdk.pdf.PdfImagesExtractor
public final class PdfiumPdfPagesExtractor extends PdfiumPdfImagesExtractor implements PdfPagesExtractor
Allows to import pdf files to Scanbot SDK as pages or extract image files. Based on Pdfium library.
-
-
Field Summary
Fields Modifier and Type Field Description private final PageFileStorage
pageFileStorage
-
Constructor Summary
Constructors Constructor Description PdfiumPdfPagesExtractor(PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, Context context)
-
Method Summary
Modifier and Type Method Description final PageFileStorage
getPageFileStorage()
List<String>
pagesFromPdf(File pdfFile, Float scaling, Bitmap.Config bitmapConfig, LongOperationCancelCallback cancelCallback, ProgressCallback progressCallback)
Converts pdf document to separate image files as pages with given options. -
-
Constructor Detail
-
PdfiumPdfPagesExtractor
PdfiumPdfPagesExtractor(PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, Context context)
- Parameters:
pageFileStorage
- page file storage to add pages tofileIOProcessor
- for handling sdk file encryption process.
-
-
Method Detail
-
getPageFileStorage
final PageFileStorage getPageFileStorage()
-
pagesFromPdf
List<String> pagesFromPdf(File pdfFile, Float scaling, Bitmap.Config bitmapConfig, LongOperationCancelCallback cancelCallback, ProgressCallback progressCallback)
Converts pdf document to separate image files as pages with given options. If the encryption of sdk is enabled all pages WILL be encrypted.
- Parameters:
pdfFile
- input pdf documentscaling
- size of the image modifier.bitmapConfig
- bitmap config to use.cancelCallback
- callback that can cancel the operation during the extraction of pagesprogressCallback
- callback that can get the number of pages already processed during the extraction of pages
-
-
-
-