public final class TextAnnotation extends Object
Annotation_Api.addTextAnnotation(InternalPdfDocument, TextAnnotation, int, int, int)
Constructor and Description |
---|
TextAnnotation()
Instantiates a new text annotation.
|
TextAnnotation(String contents)
Instantiates a new text annotation.
|
Modifier and Type | Method and Description |
---|---|
String |
getColorCode()
Gets the color of the annotation's 'Sticky Note'.
|
String |
getContents()
Gets the contents of the 'sticky note' annotation.
|
AnnotationIcon |
getIcon()
Gets icon.
|
double |
getOpacity()
Gets the opacity of the annotation (valid values are from 0.0 to 1.0).
|
String |
getSubject()
Gets subject.
|
String |
getTitle()
Gets title.
|
boolean |
isHidden()
Hides the annotation from users.
|
boolean |
isOpenByDefault()
The annotation to be opened and readable by default, without user interaction.
|
boolean |
isPrintable()
Is allows the annotation to be printed when users print the PDF.
|
boolean |
isReadOnly()
Sets the annotation to be read only.
|
boolean |
isRotateable()
Is rotateable boolean.
|
void |
setColorCode(String value)
Sets the color of the annotation's 'Sticky Note'.
|
void |
setContents(String value)
Sets the contents of the 'sticky note' annotation.
|
void |
setHidden(boolean value)
Hides the annotation from users.
|
void |
setIcon(AnnotationIcon value)
Sets icon.
|
void |
setOpacity(double value)
Sets the opacity of the annotation (valid values are from 0.0 to 1.0).
|
void |
setOpenByDefault(boolean value)
Sets the annotation to be opened and readable by default, without user interaction.
|
void |
setPrintable(boolean value)
Sets allows the annotation to be printed when users print the PDF.
|
void |
setReadOnly(boolean value)
Sets the annotation to be read only.
|
void |
setRotateable(boolean value)
Sets rotateable.
|
void |
setSubject(String value)
Sets subject.
|
void |
setTitle(String value)
Sets title.
|
String |
toString()
Returns a
String that represents this annotation. |
public TextAnnotation()
public TextAnnotation(String contents)
contents
- the contents of the 'sticky note' annotationpublic String getColorCode()
public void setColorCode(String value)
value
- the color code string.public String getContents()
public void setContents(String value)
value
- the contents text.public boolean isHidden()
public void setHidden(boolean value)
value
- the isHidden value.public double getOpacity()
public void setOpacity(double value)
value
- the opacity of the annotation (valid values are from 0.0 to 1.0).public boolean isOpenByDefault()
public void setOpenByDefault(boolean value)
value
- the value of isOpenByDefault.public boolean isPrintable()
public void setPrintable(boolean value)
value
- the isPrintable value.public boolean isReadOnly()
public void setReadOnly(boolean value)
value
- the isReadOnly value.public boolean isRotateable()
public void setRotateable(boolean value)
value
- the rotateable value.public String getTitle()
public void setTitle(String value)
value
- the valuepublic String getSubject()
public void setSubject(String value)
value
- the value.public AnnotationIcon getIcon()
public void setIcon(AnnotationIcon value)
value
- the value.Copyright © 2022–2023 Iron Software. All rights reserved.