• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
Annotation
MarkupAnnotation
FreeTextAnnotation
Inherited Members
MarkupAnnotation.Title
MarkupAnnotation.Subject
MarkupAnnotation.RichText
MarkupAnnotation.CreationDate
MarkupAnnotation.ReplyType
MarkupAnnotation.Popup
Annotation.Rect
Annotation.Contents
Annotation.Name
Annotation.Modified
Annotation.Flags
Annotation.Color
Annotation.Border
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX