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 PdfSignatureAppearanceRemarks
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
| Name | Description |
|---|---|
| PdfSignatureAppearance(int, PdfRectangle) | Initializes a new instance of the PdfSignatureAppearance class. |
PdfSignatureAppearance(int, PdfRectangle)
PdfSignatureAppearance.csInitializes a new instance of the PdfSignatureAppearance class.
public PdfSignatureAppearance(int pageIndex, PdfRectangle rectangle)Parameters
pageIndexint- The index of the page, from 0.
rectanglePdfRectangle- 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
| Name | Description |
|---|---|
| Draw | 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. |
| Font | 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. |
| FontSize | 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. |
| Image | 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. |
| PageIndex | Gets the index of the page, from 0. |
| Rectangle | Gets 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; }Property value
FontSize
PdfSignatureAppearance.csPageIndex
PdfSignatureAppearance.csRectangle
PdfSignatureAppearance.csGets the rectangle of the widget, in the default user space of the page.
public PdfRectangle Rectangle { get; }