Free Text Annotation
Represents a free text annotation on the page. The annotation’s text color comes from the color property of Annotation.
Types
Constants for FreeTextAnnotation.
Possible styles of free text annotation.
Possible values for the alignment of the text.
Properties
The points used to describe the call out line.
Sets the annotation flags for this annotation. Since a FreeTextAnnotation with an intent of type FreeTextAnnotationIntent.FREE_TEXT_CALLOUT does not work with the AnnotationFlags.NOZOOM flag, we will remove it if it exists from the provided flags set.
Type (also called intent) of the free text annotation.
Check if the annotation is resizable, or if this is a non-resizable annotation.
Returns true if this Annotation can be rotated in the UI.
The line end for the call out line.
Returns the minimum size of the annotation.
The insets that are applied to the text. This describes the offset of the inner rect containing the text, to the bounding box.
Text stroke color of this annotation. For the main text color use Annotation.color.
Gets the annotation type of the annotation.
Functions
This adjusts the annotations bounding box to the smallest possible size that will encompass the rotated annotations at it's default size.
Gets a copy of this annotation with the page index and object number reset.
Places the callout points in the same way the UI will place them based on user interaction.
Resizes this free text annotation so the text fits inside its bounds.
Sets the rotation of this free text annotation.
Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.