SignatureAppearance
Defines the visual appearance of a signature in a PDF document. Used for both digital signatures (with certificate) and electronic signatures (visual only).
from nutrient_sdk import SignatureAppearanceConstruction
SignatureAppearance()Creates a new SignatureAppearance instance with default settings.
Properties
font_name
@propertydef font_name(self) -> str
@font_name.setterdef font_name(self, value: str) -> NoneThe name of the font to use for text in the signature appearance.
Type: str
font_size
@propertydef font_size(self) -> float
@font_size.setterdef font_size(self, value: float) -> NoneThe font size in points for text in the signature appearance.
Type: float
image_path
@propertydef image_path(self) -> str
@image_path.setterdef image_path(self, value: str) -> NoneThe file path to an image to display in the signature appearance.
Type: str
show_validation_mark
@propertydef show_validation_mark(self) -> bool
@show_validation_mark.setterdef show_validation_mark(self, value: bool) -> NoneWhen true, displays a validation mark icon in the signature appearance. Only applicable for digital signatures (with certificate).
Type: bool
text
@propertydef text(self) -> str
@text.setterdef text(self, value: str) -> NoneCustom text to display in the signature appearance. When set, this overrides .
Type: str
text_color
@propertydef text_color(self) -> Color
@text_color.setterdef text_color(self, value: Color) -> NoneThe color of the text in the signature appearance.
Type: Color
use_auto_generated_text
@propertydef use_auto_generated_text(self) -> bool
@use_auto_generated_text.setterdef use_auto_generated_text(self, value: bool) -> NoneWhen 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