Class FreeTextAnnotation
A free-text annotation (PDF spec §12.5.6.6). Displays text directly on the page, optionally with a callout line. Unlike a sticky-note, the text is always visible — not hidden behind a popup.
Inherited Members
Namespace: DRIT.Pdf.Annotations
Assembly: DRIT.Pdf.dll
Syntax
public sealed class FreeTextAnnotation : MarkupAnnotation
Properties
BackgroundColor
Background fill color, or null for transparent background (/DA).
Declaration
public PdfColor? BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| PdfColor? |
FontFamily
Font family name for the displayed text. Default is Helvetica.
Declaration
public string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FontSize
Font size in points. Default is 12.
Declaration
public double FontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Intent
Intent controlling presentation (/IT). Default is FreeText.
Declaration
public FreeTextIntent Intent { get; set; }
Property Value
| Type | Description |
|---|---|
| FreeTextIntent |
Text
The text content to display in the annotation.
Declaration
public string? Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TextColor
Text color. Default is black.
Declaration
public PdfColor TextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| PdfColor |