Class SignatureAppearance
- Namespace
- SimpleSign.PAdES.Signing
- Assembly
- SimpleSign.PAdES.dll
Visual appearance settings for a visible signature annotation.
public sealed class SignatureAppearance
- Inheritance
-
SignatureAppearance
- Inherited Members
Properties
AutoPosition
When true, the library automatically positions the signature at the bottom of the page, left-to-right, wrapping to a new row above when the current row is full.
public bool AutoPosition { get; init; }
Property Value
BackgroundImageJpeg
Background image bytes (JPEG format). Rendered behind the text in the signature stamp. If both JPEG and PNG are set, PNG takes precedence.
public ReadOnlyMemory<byte>? BackgroundImageJpeg { get; init; }
Property Value
BackgroundImagePng
Background image bytes (PNG format, RGB/Gray, 8-bit, non-interlaced). Rendered behind the text in the signature stamp. If both JPEG and PNG are set, PNG takes precedence.
public ReadOnlyMemory<byte>? BackgroundImagePng { get; init; }
Property Value
BaseFontName
Base14 font name used by the appearance text (default: Helvetica). Examples: Helvetica, Times-Roman, Courier, Helvetica-Bold.
public string? BaseFontName { get; init; }
Property Value
BorderColor
Border color as RGB triplet (0.0–1.0 each). When null, no border is drawn.
public (float R, float G, float B)? BorderColor { get; init; }
Property Value
BorderWidth
Border width in points. Only used when BorderColor is set. Default: 0.5.
public float BorderWidth { get; init; }
Property Value
CustomFontSize
Custom font size for the signer name. Default: 7pt.
public float? CustomFontSize { get; init; }
Property Value
CustomLabelFontSize
Custom font size for labels ("Signed by", date, reason, location). Default: 6pt.
public float? CustomLabelFontSize { get; init; }
Property Value
ExtraLines
Extra text lines rendered after the standard fields (date, reason, location). Useful for AEA manifesto data (CPF, e-mail, IP). Each entry is rendered as a separate line in the stamp.
public IReadOnlyList<string>? ExtraLines { get; init; }
Property Value
Page
Page number (1-based) where the signature annotation is placed.
public int Page { get; init; }
Property Value
ShowDate
Whether to display the signing date/time. Default true.
public bool ShowDate { get; init; }
Property Value
ShowLocation
Whether to display the signing location.
public bool ShowLocation { get; init; }
Property Value
ShowReason
Whether to display the signing reason.
public bool ShowReason { get; init; }
Property Value
TextColor
Text color as RGB triplet (0.0–1.0 each). Default: black (0, 0, 0).
public (float R, float G, float B)? TextColor { get; init; }
Property Value
VerificationUrl
URL for a verification endpoint. When set, a QR code encoding this URL is rendered on the left side of the visual signature stamp.
public string? VerificationUrl { get; init; }
Property Value
X
X coordinate of the annotation rectangle (lower-left corner, in points). Ignored when AutoPosition is true.
public float X { get; init; }
Property Value
Y
Y coordinate of the annotation rectangle (lower-left corner, in points). Ignored when AutoPosition is true.
public float Y { get; init; }
Property Value
Methods
Auto()
Creates an auto-positioned signature appearance. Signatures are placed left-to-right at the bottom of the page, wrapping to a new row when the line is full.
public static SignatureAppearance Auto()
Returns
Auto(bool, bool)
Creates an auto-positioned signature appearance with reason and location visible.
public static SignatureAppearance Auto(bool showReason, bool showLocation)