public class FreeTextAnnotation
extends com.snowtide.pdf.annot.BaseAnnotation
An Annotation
implementation that represents
a PDF annotation of type FreeText
.
FreeTextAnnotation
s differ from TextAnnotation
s in
the following ways:
getRichContent()
and getRichContentStyle()
functions, respectively.
FreeTextAnnotations should also contain a plain-text representation of their content
suitable for indexing, etc., accessible using the getContents()
function.
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
getRichContent() function when that content is displayed. |
public int getJustificationInd()
public java.lang.String getRichContent()
getContents()
function.public java.lang.String getRichContentStyle()
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'.