Class: RenderTask

pdfjsLib~RenderTask()

Allows controlling of the rendering tasks.

Constructor

new RenderTask()

Source:

Members

onContinue :function

Callback for incremental rendering -- a function that will be called each time the rendering is paused. To continue rendering call the function that is the first argument to the callback.
Type:
  • function
Source:

promise :Promise:.<void:>

Promise for rendering task completion.
Type:
  • Promise:.<void:>
Source:

separateAnnots :boolean

Whether form fields are rendered separately from the main operatorList.
Type:
  • boolean
Source:

Methods

cancel(extraDelayopt)

Cancels 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 be rejected when cancelled.
Parameters:
Name Type Attributes Default Description
extraDelay number <optional>
0
Source: