Class ScanConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public class ScanConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    Options allowing to customize the scan flow
    See Also:
    Serialized Form
    • Field Detail

      • defaultFilter

        public ScanConfiguration.Filter defaultFilter
        Force the use of a specific post processing filter. If not provided, the best filter will be chosen automatically.
      • postProcessingActions

        public java.util.EnumSet<ScanConfiguration.Action> postProcessingActions
        Select which actions are displayed in the post processing screen Default is everything.
      • flashButtonHidden

        public boolean flashButtonHidden
        The visibility of the flash button. By default, the flash button is displayed.
      • backgroundColor

        public int backgroundColor
        UI background color. Default is black.
      • foregroundColor

        public int foregroundColor
        UI foreground color (text and icons). Default is white.
      • highlightColor

        public int highlightColor
        Color of the document detection overlay. Default is blue.
      • jpegQuality

        public int jpegQuality
        JPEG quality used to compress captured images. Between 0 and 100, 100 being the best quality. Default is 60.
      • pdfMaxScanDimension

        public int pdfMaxScanDimension
        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.
      • pdfFontFile

        public java.io.File pdfFontFile
        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.
      • ocrConfiguration

        public ScanConfiguration.OcrConfiguration ocrConfiguration
        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.
    • Constructor Detail

      • ScanConfiguration

        public ScanConfiguration()