Contains information to be used for preparing a document to be signed digitally.
This object can be passed optionally to PSPDFKit.Instance.signDocument()
with specific parameters for the preparation of the digital signature.
This is the property that can be included in the object:
Properties:
Name | Type | Description |
---|---|---|
placeholderSize |
number | Size (bytes) to be reserved for the digital signature container. |
flatten |
boolean | Whether the document should be flatten before digitally signing it. |
Example
Setting the digital signature container reserved size when signing (Server)
instance.signDocument({
placeholderSize: 16384 // Specify a container with a 16KB size
})
.then(function () {
console.log("The document has been signed!");
});