PdfSignatureAppearance Class

The widget of a visible signature (ISO 32000-2, 12.7.5.5 and 12.5.5): the page and the rectangle it is shown in, and what it shows: the drawing of the caller, or the default layout of the library.

public sealed class PdfSignatureAppearance

Remarks

The default layout shows the name of the signer (PdfSignatureOptions.SignerName, or the name of the certificate), the time of the signature, the reason and the location, with PdfSignatureAppearance.Image at their left (or above them, in a rectangle taller than wide).

Constructors

NameDescription
PdfSignatureAppearance(int, PdfRectangle)Initializes a new instance of the PdfSignatureAppearance class.

PdfSignatureAppearance(int, PdfRectangle)

PdfSignatureAppearance.cs

Initializes a new instance of the PdfSignatureAppearance class.

public PdfSignatureAppearance(int pageIndex, PdfRectangle rectangle)

Parameters

pageIndex int
The index of the page, from 0.
rectangle PdfRectangle
The rectangle of the widget, in the default user space of the page.

Exceptions

ArgumentOutOfRangeException
The index is negative, or the rectangle is empty.

Properties

NameDescription
DrawGets the drawing of the appearance stream, a form whose coordinates go from (0, 0) to the width and the height of PdfSignatureAppearance.Rectangle; null (the default) for the default layout. A drawing that draws nothing gives an empty appearance.
FontGets the font of the text of the default layout. The default is Helvetica, which shows the characters of WinAnsiEncoding: use an embedded font for the other characters.
FontSizeGets the font size of the text of the default layout; 0 (the default) for the largest size, up to 10, at which the text fits in the rectangle.
ImageGets the image of the default layout, such as a handwritten signature or a logo, scaled to fit its part of the rectangle; null (the default) for text only.
PageIndexGets the index of the page, from 0.
RectangleGets the rectangle of the widget, in the default user space of the page.

Gets the drawing of the appearance stream, a form whose coordinates go from (0, 0) to the width and the height of PdfSignatureAppearance.Rectangle; null (the default) for the default layout. A drawing that draws nothing gives an empty appearance.

public Action<PdfContentBuilder>? Draw { get; init; }

Gets the font of the text of the default layout. The default is Helvetica, which shows the characters of WinAnsiEncoding: use an embedded font for the other characters.

public PdfFont? Font { get; init; }

Property value

PdfFont?

Gets the font size of the text of the default layout; 0 (the default) for the largest size, up to 10, at which the text fits in the rectangle.

public double FontSize { get; init; }

Property value

double

Gets the image of the default layout, such as a handwritten signature or a logo, scaled to fit its part of the rectangle; null (the default) for text only.

public PdfImage? Image { get; init; }

Property value

PdfImage?

Gets the index of the page, from 0.

public int PageIndex { get; }

Property value

int

Gets the rectangle of the widget, in the default user space of the page.

public PdfRectangle Rectangle { get; }

Property value

PdfRectangle