Interface: StandaloneSigningServiceData

PSPDFKit.StandaloneSigningServiceData

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 <server_url>/api/sign_hash is used as the signing endpoint and <server_url>/api/get_certificates is used to retrieve the certificates.

signingToken string

Optional signing token to be passed by the backend to the signing service. Valid only when signing via Document Engine.

Example

Signing document in Web standalone via PSPDFKit backend

instance.signDocument(null, {
  jwt: "<auth_token>"
})
  .then(function () {
    console.log("The document has been signed!");
  });