Scan Configuration
Options allowing to customize the scan flow
Constructors
Types
Actions displayed on the post processing screen
The post processing filter to apply to the image.
The various formats into which the OCR result can be made available.
Physical size of pages in the generated PDF file
The source of the scan flow.
The types of structured data to extract.
Properties
The filters that the user can select when they tap on the edit filter button.
UI background color. Default is black.
Any specific kind of post-processing to use. Defaults to automatic.
The default flash mode used when capturing a page. Combine with ScanConfiguration.flashButtonHidden if you want to only allow a specific flash mode. Default is FlashMode.OFF.
The visibility of the flash button. By default, the flash button is displayed.
UI foreground color (text and icons). Default is white.
Color of the document detection overlay. Default is blue.
JPEG quality used to compress captured images. Between 0 and 100, 100 being the best quality. Default is 60.
Multipage mode. Only apply when ScanConfiguration.source is Source.CAMERA. Defaults to true.
Format of the document created with all the captured pages. When set to MultiPageFormat.NONE, no document will be generated but the individual pages will still be accessible in the ScanResult.
Configuration of the text recognition. Text recognition will run on a background thread for every captured image. If null, no text recognition will be applied.
Custom font file used during the PDF generation to embed an invisible text layer. If null, a default font is used, which only supports Latin languages.
Max scan dimension in pixels when generating the PDF file. All scans included in the PDF file will be scaled so that both their height and width are smaller than this value, while keeping their aspect ratio. Default is 0, which means no scaling is applied.
Determine the size of the pages when generating the PDF. Default is PdfPageSize.FIT
The visibility of the photo library button. By default, the photo library button is displayed.
Select which actions are displayed in the post processing screen Default is everything.
The source for the scanned documents (camera, image...). If the source is Source.IMAGE, the parameter ScanConfiguration.sourceImage must be provided.
The source image if ScanConfiguration.source is Source.IMAGE.
Types of structured data to extract from the document. When set to empty, no structured data will be extracted. This is an option set so you can combine multiple values.