Options
All
  • Public
  • Public/Protected
  • All
Menu

Specifies information about the video scan job to be processed at the client side.

Hierarchy

Index

Constructors

Properties

_dither: Dither = Dither.Threshold
_enableDecodeBarcode: boolean = false
_imageFormat: ScannerImageFormatOutput = ScannerImageFormatOutput.JPG
_jpgCompressionQuality: number = 100
_pdfTitle: string = ""
_pixelMode: PixelMode = PixelMode.Color
_pngCompression: PngCompression = PngCompression.DEFAULT
_rotAngle: number = 0
_threshold: number = 128
_tiffCompression: TiffCompression = TiffCompression.DEFAULT
_type: string = 'scan_job'
_videoDeviceName: string = ""

Accessors

  • Gets or sets the dither algorithm for black & white output image. Default is Dither.Threshold.

    Returns Dither

  • Gets or sets the dither algorithm for black & white output image. Default is Dither.Threshold.

    Parameters

    Returns void

  • get enableDecodeBarcode(): boolean
  • set enableDecodeBarcode(val: boolean): void
  • Gets or sets whether to enable barcode decoding. Default is false.

    Returns boolean

  • Gets or sets whether to enable barcode decoding. Default is false.

    Parameters

    • val: boolean

    Returns void

  • Gets or sets the scan output image format. Default is ScannerImageFormatOutput.JPG.

    Returns ScannerImageFormatOutput

  • Gets or sets the scan output image format. Default is ScannerImageFormatOutput.JPG.

    Parameters

    Returns void

  • get jpgCompressionQuality(): number
  • set jpgCompressionQuality(val: number): void
  • Gets or sets the compression quality for JPG output image. Allowed range is 1 (Very bad quality, smallest size) to 100 (Best quality, biggest size). Default is 100.

    Returns number

  • Gets or sets the compression quality for JPG output image. Allowed range is 1 (Very bad quality, smallest size) to 100 (Best quality, biggest size). Default is 100.

    Parameters

    • val: number

    Returns void

  • get pdfTitle(): string
  • set pdfTitle(val: string): void
  • Gets or sets the PDF title of the output image. Default is an empty string.

    Returns string

  • Gets or sets the PDF title of the output image. Default is an empty string.

    Parameters

    • val: string

    Returns void

  • Gets or sets the scan pixel mode. Default is PixelMode.Color.

    Returns PixelMode

  • Gets or sets the scan pixel mode. Default is PixelMode.Color.

    Parameters

    Returns void

  • Gets or sets the compression type for PNG output image.

    Returns PngCompression

  • Gets or sets the compression type for PNG output image.

    Parameters

    Returns void

  • get rotAngle(): number
  • set rotAngle(val: number): void
  • Gets or sets the clockwise rotation angle (in degrees) to apply on the output scan. Default is 0.

    Returns number

  • Gets or sets the clockwise rotation angle (in degrees) to apply on the output scan. Default is 0.

    Parameters

    • val: number

    Returns void

  • get threshold(): number
  • set threshold(val: number): void
  • Gets or sets the threshold value for black & white output image. Allowed range is 0 to 255. Default is 128.

    Returns number

  • Gets or sets the threshold value for black & white output image. Allowed range is 0 to 255. Default is 128.

    Parameters

    • val: number

    Returns void

  • Gets or sets the compression type for TIFF output image.

    Returns TiffCompression

  • Gets or sets the compression type for TIFF output image.

    Parameters

    Returns void

  • get videoDeviceName(): string
  • set videoDeviceName(val: string): void
  • Gets or sets the video device name. Default is an empty string.

    Returns string

  • Gets or sets the video device name. Default is an empty string.

    Parameters

    • val: string

    Returns void

Methods

  • onError(data: any, is_critical: any): void
  • Occurs when an error is thrown for the current scan job.

    Parameters

    • data: any

      The data object related to this event.

    • is_critical: any

      Whether the error is critial or not.

    Returns void

  • onFinished(data: any): void
  • Occurs when the current scan job has finished.

    Parameters

    • data: any

      The data object related to this event.

    Returns void

  • onUpdate(data: any, last: any): void
  • Parameters

    • data: any
    • last: any

    Returns void

  • sendToClient(): Promise<unknown>