Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

Properties

_dither: Dither = Dither.Threshold
_enableDuplex: boolean = false
_enableFeeder: boolean = false
_feederCount: number = 1
_imageFormat: ScannerImageFormatOutput = ScannerImageFormatOutput.JPG
_jpgCompressionQuality: number = 100
_pdfTitle: string = ""
_pixelMode: PixelMode = PixelMode.Color
_resolution: number = 200
_scannerName: string = ""
_threshold: number = 128
_type: string = 'scan_job'

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 enableDuplex(): boolean
  • set enableDuplex(val: boolean): void
  • Gets or sets whether to enable duplex scanning. Default is false.

    Returns boolean

  • Gets or sets whether to enable duplex scanning. Default is false.

    Parameters

    • val: boolean

    Returns void

  • get enableFeeder(): boolean
  • set enableFeeder(val: boolean): void
  • Gets or sets whether to enable Auto Document Feeder (ADF). Default is false.

    Returns boolean

  • Gets or sets whether to enable Auto Document Feeder (ADF). Default is false.

    Parameters

    • val: boolean

    Returns void

  • get feederCount(): number
  • set feederCount(val: number): void
  • Gets or sets the number of docs to be scanned. Default is 1.

    Returns number

  • Gets or sets the number of docs to be scanned. Default is 1.

    Parameters

    • val: number

    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

  • get resolution(): number
  • set resolution(val: number): void
  • Gets or sets the DPI or quality resolution of the output scan. Default is 200 dpi.

    Returns number

  • Gets or sets the DPI or quality resolution of the output scan. Default is 200 dpi.

    Parameters

    • val: number

    Returns void

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

    Returns string

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

    Parameters

    • val: string

    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

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>