[]
type FreeTextAnnotationProperties = MarkupAnnotationProperties & object;
Defines the properties of a free text annotation that displays text directly on a page. Unlike an ordinary text annotation (TextAnnotation), a free text annotation has no open or closed state. Instead of being displayed in a pop-up window, the text is always visible.
optional calloutLine?: Point[];
The array of 2 or 3 Point structures specifying a callout line attached to the free text annotation. 3 points represent the starting coordinates, the knee point, and the ending coordinates of the line. 2 points represent the starting and ending coordinates of the line. The coordinates are in default user space relative to the upper left corner of the page's media box, with the Y (vertical) coordinates increasing from top to bottom.
optional defaultAppearance?:
| DefaultAppearanceProperties
| string;
The apperance that specifies the visual properties (font, font size etc.) used to format the content of the annotation. The apperance can be specified as DefaultAppearanceProperties with set of properties like font, fontSize, foreColor or as a string as it will be stored in a PDF stream: "/DF0 10 Tf 0 0 0 rg".
optional justification?: VariableTextJustification;
The justification to be used in displaying the annotation's text. See PDF specification for details.
optional lineDashPattern?: number[];
The line dash pattern. Null means a solid line.
optional lineEndStyle?: LineEndingStyle;
The style of end callout line.
optional lineWidth?: number;
The line width in points.
optional opacity?: number;
The opacity value to be used in painting the annotation. This value applies to all visible elements of the annotation in its closed state (including its background and border) but not to the pop-up window that appears when the annotation is opened.
optional textOffsets?: Offsets;
The Offsets structure that defines the numerical differences between two rectangles: the AnnotationBase#rect and an inner rectangle contained within that rectangle. The inner rectangle is where the FreeTextAnnotation's text should be displayed.
Note that if this rectangle is not specified then AnnotationBase#rect is used as the text rectangle.
type: "freetext";