new DocSnapshot()
The class DocSnapshot.
Represents a state of the document.
Extends
Methods
-
destroy()
-
Destructor
- Inherited From:
Returns:
- Type
- Promise.<void>
-
equals(snapshot)
-
Returns whether this snapshot's document state is equivalent to another.
Parameters:
Name Type Description snapshot
PDFNet.DocSnapshot - the other snapshot with which to compare. Returns:
A promise that resolves to whether this snapshot's document state is equivalent to another.- Type
- Promise.<boolean>
-
getHash()
-
Returns a hash that is unique to particular document states.
Returns:
A promise that resolves to a hash that is unique to particular document states.- Type
- Promise.<number>
-
isValid()
-
Returns whether this snapshot is valid.
Returns:
A promise that resolves to whether this snapshot is valid.- Type
- Promise.<boolean>
-
takeOwnership()
-
Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
- Inherited From:
Returns:
- Type
- void