Interface PDFRenderTask

RenderTask is basically a promise but adds a cancel function to termiate it.

Hierarchy

Index

Methods

Methods

public cancel()

Cancel the rendering task. If the task is currently rendering it will not be cancelled until graphics pauses with a timeout. The promise that this object extends will resolve when cancelled.

public isRejected(): boolean

Returns

boolean

public isResolved(): boolean

Returns

boolean

public reject(reason: string)

Parameters

  • reason: string

public resolve(value: T in PDFPromise<T>)

Parameters

  • value: T in PDFPromise<T>

public then(onResolve: (promise: T) => void, onReject?: (reason: string) => void): PDFPromise

Parameters

  • onResolve: (promise: T) => void
  • onReject?: (reason: string) => void optional

Returns

PDFPromise