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 import SignatureAppearanceMethods
set_font_name
def set_font_name(self, value: str) -> NoneSets the name of the font to use for text in the signature appearance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the FontName property. |
set_font_size
def set_font_size(self, value: float) -> NoneSets the font size in points for text in the signature appearance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | The value to set for the FontSize property. |
set_image_path
def set_image_path(self, value: str) -> NoneSets the file path to an image to display in the signature appearance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the ImagePath property. |
set_show_validation_mark
def set_show_validation_mark(self, value: bool) -> NoneSets when true, displays a validation mark icon in the signature appearance. Only applicable for digital signatures (with certificate).
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the ShowValidationMark property. |
set_text
def set_text(self, value: str) -> NoneSets custom text to display in the signature appearance. When set, this overrides .
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the Text property. |
set_text_color
def set_text_color(self, value: Color) -> NoneSets the color of the text in the signature appearance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | Color | The value to set for the TextColor property. |
set_use_auto_generated_text
def set_use_auto_generated_text(self, value: bool) -> NoneSets 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.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the UseAutoGeneratedText property. |
Properties
font_name
@propertydef font_name(self) -> strGets the name of the font to use for text in the signature appearance.
Type: str
Read-only property.
font_size
@propertydef font_size(self) -> floatGets the font size in points for text in the signature appearance.
Type: float
Read-only property.
image_path
@propertydef image_path(self) -> strGets the file path to an image to display in the signature appearance.
Type: str
Read-only property.
show_validation_mark
@propertydef show_validation_mark(self) -> boolGets when true, displays a validation mark icon in the signature appearance. Only applicable for digital signatures (with certificate).
Type: bool
Read-only property.
text
@propertydef text(self) -> strGets custom text to display in the signature appearance. When set, this overrides .
Type: str
Read-only property.
text_color
@propertydef text_color(self) -> ColorGets the color of the text in the signature appearance.
Type: Color
Read-only property.
use_auto_generated_text
@propertydef use_auto_generated_text(self) -> boolGets 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
Read-only property.