Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Properties

_imageFormat

_imageFormat: ScannerImageFormatOutput = ScannerImageFormatOutput.JPG

_pixelMode

_pixelMode: PixelMode = PixelMode.Color

_resolution

_resolution: number = 200

_scannerName

_scannerName: string = ""

_type

_type: string = "scan_job"

Accessors

imageFormat

imageFormat:

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

pixelMode

pixelMode:

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

resolution

resolution:

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

scannerName

scannerName:

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

Methods

onError

  • 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

  • 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

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

    • data: any
    • last: any

    Returns void

sendToClient

  • sendToClient(): Promise<Object>