Standalone only
Contains information needed for signing with PSPDFKit backend (e.g. Document Engine) in standalone mode.
The document loaded in your instance will not be transferred over the network, instead document hash and signature properties will be prepared locally and passed to the backend to perform the signing via certificate, finally digital signature is embedded into the document locally.
Uses JSON Web Token (JWT) to authorize with the PSPDFKit backend. See Document Engine's API Reference for more details about the JWT authorization.
Properties:
Name | Type | Description |
---|---|---|
jwt |
string | Authentication token needed to authenticate the signing request with the backend. |
serverUrl |
string | Base server URL to use as the signing backend.
The |
signingToken |
string | Optional signing token to be passed by the backend to the signing service. Valid only when signing via Document Engine. |
Example
instance.signDocument(null, {
jwt: "<auth_token>"
})
.then(function () {
console.log("The document has been signed!");
});