Class InMemoryElectronicSignatureStorage
This Electronic Signature Storage implementation saves the signatures locally.
It is provided as an example and helper for usage with PSPDFKit.Pdf.ElectronicSignatures.ElectronicSignaturesController.
This storage handler only saves signatures in memory until the application closes.
For more options and control over the events handler, please see IElectronicSignatureStorage and implement your own solution.
Inheritance
Implements
Namespace: PSPDFKit.Pdf.ElectronicSignatures
Assembly: PSPDFKit.dll
Syntax
public sealed class InMemoryElectronicSignatureStorage : IElectronicSignatureStorage
Constructors
InMemoryElectronicSignatureStorage()
This Electronic Signature Storage implementation saves the signatures locally.
Declaration
public InMemoryElectronicSignatureStorage()
Properties
InitialSignatures
Signatures in this list will appear when first opening the stored signatures UI.
It is useful for setting the signatures you want to appear by default in a document.
Note that this list is not updated automatically. Keeping it updated, however, is useful for keeping specific
signatures between opening and closing documents, as newly opened documents will get their initial signatures from this list.
Declaration
public IList<IAnnotation> InitialSignatures { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IAnnotation> |
Methods
OnSignatureCreated(IAnnotation)
Handler for the creation of ElectronicSignatures.
You must either create your own implementation of the storage or use InMemoryElectronicSignatureStorage.
Declaration
public void OnSignatureCreated(IAnnotation signature)
Parameters
Type | Name | Description |
---|---|---|
IAnnotation | signature |
OnSignatureDeleted(IAnnotation)
Handler for the deletion of ElectronicSignatures.
You must either create your own implementation of the storage or use InMemoryElectronicSignatureStorage.
Declaration
public void OnSignatureDeleted(IAnnotation signature)
Parameters
Type | Name | Description |
---|---|---|
IAnnotation | signature |