| Modifier and Type | Field and Description |
|---|---|
| private PDAppearanceHandler | |
| public static final String | NAME_CHECK
Constant for the name of a check annotation. |
| public static final String | NAME_CIRCLE
Constant for the name of a circle annotation. |
| public static final String | NAME_COMMENT
Constant for the name of a text annotation. |
| public static final String | NAME_CROSS
Constant for the name of a cross annotation. |
| public static final String | NAME_CROSS_HAIRS
Constant for the name of a crosshairs annotation. |
| public static final String | NAME_HELP
Constant for the name of a text annotation. |
| public static final String | NAME_INSERT
Constant for the name of a text annotation. |
| public static final String | NAME_KEY
Constant for the name of a text annotation. |
| public static final String | NAME_NEW_PARAGRAPH
Constant for the name of a text annotation. |
| public static final String | NAME_NOTE
Constant for the name of a text annotation. |
| public static final String | NAME_PARAGRAPH
Constant for the name of a text annotation. |
| public static final String | NAME_RIGHT_ARROW
Constant for the name of a right arrow annotation. |
| public static final String | NAME_RIGHT_POINTER
Constant for the name of a right pointer annotation. |
| public static final String | NAME_STAR
Constant for the name of a star annotation. |
| public static final String | NAME_UP_ARROW
Constant for the name of a crosshairs annotation. |
| public static final String | NAME_UP_LEFT_ARROW
Constant for the name of a crosshairs annotation. |
| public static final String | SUB_TYPE
The type of annotation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDAnnotationText(COSDictionary
the PDF object to represent as a field. field)Creates a Text annotation from a COSDictionary, expected to be a correct object definition. |
| Modifier and Type | Method and Description |
|---|---|
| public void | constructAppearances()
Overrides org. Create the appearance entry for this annotation. |
| public void | constructAppearances(PDDocument
the related document document)Overrides org. Create the appearance entry for this annotation. |
| public String | Returns: The name of this annotation, see the NAME_XXX constants.This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. |
| public boolean | Returns: The initial state, true = open false = closedThis will retrieve the initial state of the annotation, open Or closed (default closed). |
| public String | |
| public String | |
| public void | setCustomAppearanceHandler(PDAppearanceHandler
custom appearance handler appearanceHandler)Set a custom appearance handler for generating the annotations appearance streams. |
| public void | |
| public void | setOpen(boolean
Boolean value, true = open false = closed open)This will set initial state of the annotation, open or closed. |
| public void | |
| public void |
| customAppearanceHandler | back to summary |
|---|---|
| private PDAppearanceHandler customAppearanceHandler | |
| NAME_CHECK | back to summary |
|---|---|
| public static final String NAME_CHECK Constant for the name of a check annotation. | |
| NAME_CIRCLE | back to summary |
|---|---|
| public static final String NAME_CIRCLE Constant for the name of a circle annotation. | |
| NAME_COMMENT | back to summary |
|---|---|
| public static final String NAME_COMMENT Constant for the name of a text annotation. | |
| NAME_CROSS | back to summary |
|---|---|
| public static final String NAME_CROSS Constant for the name of a cross annotation. | |
| NAME_CROSS_HAIRS | back to summary |
|---|---|
| public static final String NAME_CROSS_HAIRS Constant for the name of a crosshairs annotation. | |
| NAME_HELP | back to summary |
|---|---|
| public static final String NAME_HELP Constant for the name of a text annotation. | |
| NAME_INSERT | back to summary |
|---|---|
| public static final String NAME_INSERT Constant for the name of a text annotation. | |
| NAME_KEY | back to summary |
|---|---|
| public static final String NAME_KEY Constant for the name of a text annotation. | |
| NAME_NEW_PARAGRAPH | back to summary |
|---|---|
| public static final String NAME_NEW_PARAGRAPH Constant for the name of a text annotation. | |
| NAME_NOTE | back to summary |
|---|---|
| public static final String NAME_NOTE Constant for the name of a text annotation. | |
| NAME_PARAGRAPH | back to summary |
|---|---|
| public static final String NAME_PARAGRAPH Constant for the name of a text annotation. | |
| NAME_RIGHT_ARROW | back to summary |
|---|---|
| public static final String NAME_RIGHT_ARROW Constant for the name of a right arrow annotation. | |
| NAME_RIGHT_POINTER | back to summary |
|---|---|
| public static final String NAME_RIGHT_POINTER Constant for the name of a right pointer annotation. | |
| NAME_STAR | back to summary |
|---|---|
| public static final String NAME_STAR Constant for the name of a star annotation. | |
| NAME_UP_ARROW | back to summary |
|---|---|
| public static final String NAME_UP_ARROW Constant for the name of a crosshairs annotation. | |
| NAME_UP_LEFT_ARROW | back to summary |
|---|---|
| public static final String NAME_UP_LEFT_ARROW Constant for the name of a crosshairs annotation. | |
| SUB_TYPE | back to summary |
|---|---|
| public static final String SUB_TYPE The type of annotation. | |
| PDAnnotationText | back to summary |
|---|---|
| public PDAnnotationText() Constructor. | |
| PDAnnotationText | back to summary |
|---|---|
| public PDAnnotationText(COSDictionary field) Creates a Text annotation from a COSDictionary, expected to be a correct object definition.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances() Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances(PDDocument document) Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| getName | back to summary |
|---|---|
| public String getName() This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is NOTE.
| |
| getOpen | back to summary |
|---|---|
| public boolean getOpen() This will retrieve the initial state of the annotation, open Or closed (default closed).
| |
| getState | back to summary |
|---|---|
| public String getState() This will retrieve the annotation state.
| |
| getStateModel | back to summary |
|---|---|
| public String getStateModel() This will retrieve the annotation state model.
| |
| setCustomAppearanceHandler | back to summary |
|---|---|
| public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler) Set a custom appearance handler for generating the annotations appearance streams.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) This will set the name (and hence appearance, AP taking precedence) For this annotation. See the NAME_XXX constants for valid values.
| |
| setOpen | back to summary |
|---|---|
| public void setOpen(boolean open) This will set initial state of the annotation, open or closed.
| |
| setState | back to summary |
|---|---|
| public void setState(String state) This will set the annotation state.
| |
| setStateModel | back to summary |
|---|---|
| public void setStateModel(String stateModel) This will set the annotation state model. Allowed values are "Marked" and "Review"
| |