SignatureAppearance
Defines the visual appearance of a signature in a PDF document. Used for both digital signatures (with certificate) and electronic signatures (visual only).
using Nutrient;Construction
public SignatureAppearance()Properties
FontName
public string? FontName { get; set; }The name of the font to use for text in the signature appearance.
Type: string?
FontSize
public float FontSize { get; set; }The font size in points for text in the signature appearance.
Type: float
ImagePath
public string? ImagePath { get; set; }The file path to an image to display in the signature appearance.
Type: string?
ShowValidationMark
public bool ShowValidationMark { get; set; }When true, displays a validation mark icon in the signature appearance. Only applicable for digital signatures (with certificate).
Type: bool
Text
public string? Text { get; set; }Custom text to display in the signature appearance. When set, this overrides UseAutoGeneratedText.
Type: string?
TextColor
public Color? TextColor { get; set; }The color of the text in the signature appearance.
Type: Color?
UseAutoGeneratedText
public bool UseAutoGeneratedText { get; set; }When true, automatically generates text from signature metadata (signer name, reason, location, date). This is the default behavior when no custom text or image is provided.
Type: bool
Methods
SetImageStream
public void SetImageStream(Stream value)A stream containing an image to display in the signature appearance.
Parameters
| Name | Type | Description |
|---|---|---|
value | Stream | The value to set for the ImageStream property. |
Resource management
public void Dispose()SignatureAppearance implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.