public final class TextAnnotation extends Object
Annotation_Api.addTextAnnotation(InternalPdfDocument, TextAnnotation)| Constructor and Description |
|---|
TextAnnotation()
Instantiates a new text annotation.
|
TextAnnotation(String contents)
Instantiates a new text annotation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAnnotationIndex()
Gets index of the annotation on a page.
|
String |
getColorCode()
Gets the color of the annotation's 'Sticky Note'.
|
String |
getContents()
Gets the contents of the 'sticky note' annotation.
|
int |
getHeight()
Gets the height of your annotation's icon and interactive area in pixels
|
AnnotationIcon |
getIcon()
Gets icon.
|
double |
getOpacity()
Gets the opacity of the annotation (valid values are from 0.0 to 1.0).
|
int |
getPageIndex()
Gets index of the page to add the annotation.
|
String |
getSubject()
Gets subject.
|
String |
getTitle()
Gets title.
|
int |
getWidth()
Gets the width of your annotation's icon and interactive area in pixels
|
int |
getX()
Gets the horizontal X position of the annotation on your page in pixels
|
int |
getY()
Gets the vertical Y position of the annotation on your page in pixels.
|
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 |
isRotatable()
Is rotateable boolean.
|
void |
setAnnotationIndex(int annotationIndex)
Sets index of the annotation on a page.
|
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 |
setHeight(int height)
Sets the height of your annotation's icon and interactive area in pixels
|
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 |
setPageIndex(int pageIndex)
Sets index of the page to add the annotation.
|
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 |
setRotatable(boolean value)
Sets rotatable.
|
void |
setSubject(String value)
Sets subject.
|
void |
setTitle(String value)
Sets title.
|
void |
setWidth(int width)
Sets the width of your annotation's icon and interactive area in pixels
|
void |
setX(int x)
Sets the horizontal X position of the annotation on your page in pixels
|
void |
setY(int y)
Sets the vertical Y position of the annotation on your page in pixels.
|
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 isRotatable()
public void setRotatable(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.public int getHeight()
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public int getY()
public void setY(int y)
public int getX()
public void setX(int x)
public int getPageIndex()
public void setPageIndex(int pageIndex)
public int getAnnotationIndex()
public void setAnnotationIndex(int annotationIndex)
Copyright © 2022–2024 Iron Software. All rights reserved.