public class FreeTextAnnotation
extends java.lang.Object
An Annotation
implementation that represents
a PDF annotation of type FreeText
.
FreeTextAnnotation
s differ from TextAnnotation
s in
the following ways:
FreeTextAnnotation.getRichContent()
and FreeTextAnnotation.getRichContentStyle()
functions, respectively.
FreeTextAnnotations should also contain a plain-text representation of their content
suitable for indexing, etc., accessible via Annotation.getContents()
.
Constructor and Description |
---|
FreeTextAnnotation() |
Modifier and Type | Method and Description |
---|---|
int |
getJustificationInd()
Returns an int indicating how the text content of this annotation should be justified.
|
java.lang.String |
getRichContent()
Returns the rich text content held by this annotation.
|
java.lang.String |
getRichContentStyle()
Returns the CSS style information held by this annotation that should be applied to the rich text
content returned by the
FreeTextAnnotation.getRichContent() function when that content is displayed. |
getAppearance, getContents, getModificationDate, getName, getTypeCd
pageNumber
public int getJustificationInd()
public java.lang.String getRichContent()
getContents()
function.public java.lang.String getRichContentStyle()
FreeTextAnnotation.getRichContent()
function when that content is displayed.
This style information should conform to the CSS recommendations presented in the PDF document
reference, Section 8.6, subsection 'Rich Text Strings'.