PdfFreeTextAnnotation Class
A free text annotation (ISO 32000-2, 12.5.6.6): a text drawn directly on the page, in a box, possibly with a callout line.
public sealed class PdfFreeTextAnnotation : PdfMarkupAnnotation- Inheritance
PdfMarkupAnnotationPdfFreeTextAnnotation
Properties
| Name | Description |
|---|---|
| Alignment | Gets or sets the alignment of the text (/Q): PdfTextAlignment.Left, PdfTextAlignment.Center or PdfTextAlignment.Right. |
| CalloutLine | Gets or sets the points of the callout line (/CL): two or three points, from the point the callout designates to the box; an empty list when the annotation has none. |
| CalloutLineEnding | Gets or sets the ending of the callout line at the point it designates (/LE). |
| DefaultAppearance | Gets or sets the default appearance string of the text (/DA, 12.7.4.3): the operators that set its font, size and color, such as /Helvetica 12 Tf 0 g. |
| Intent | Gets or sets the intent of the annotation (/IT): FreeText, FreeTextCallout or FreeTextTypeWriter. |
Alignment
PdfFreeTextAnnotation.csGets or sets the alignment of the text (/Q): PdfTextAlignment.Left, PdfTextAlignment.Center or PdfTextAlignment.Right.
public PdfTextAlignment Alignment { get; set; }Property value
Exceptions
ArgumentOutOfRangeException- The value is
PdfTextAlignment.Justify, which a free text cannot have.
CalloutLine
PdfFreeTextAnnotation.csGets or sets the points of the callout line (/CL): two or three points, from the point the callout designates to the box; an empty list when the annotation has none.
public IReadOnlyList<PdfPoint> CalloutLine { get; set; }CalloutLineEnding
PdfFreeTextAnnotation.csGets or sets the ending of the callout line at the point it designates (/LE).
public PdfLineEnding CalloutLineEnding { get; set; }