Class: ResultSnapshot

PDFNet. ResultSnapshot


new ResultSnapshot()

The class ResultSnapshot. Represents a transition between two document states.

Extends

Methods


currentState()

Retrieves the document state to which this transition has transitioned.
Returns:
A promise that resolves to the current document state.
Type
Promise.<PDFNet.DocSnapshot>

destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

isNullTransition()

Returns whether this transition is a null transition.
Returns:
A promise that resolves to whether this transition is a null transition.
Type
Promise.<boolean>

isOk()

Returns whether this transition is valid or a null transition.
Returns:
A promise that resolves to whether this transition is valid or a null transition.
Type
Promise.<boolean>

previousState()

Retrieves the document state from which this transition has transitioned.
Returns:
A promise that resolves to the previous document state.
Type
Promise.<PDFNet.DocSnapshot>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void