public class AnnotationOptions extends Object
PdfDocument
.
See: AnnotationManager
Constructor and Description |
---|
AnnotationOptions(String contents)
Adds an annotation to a page of this
PdfDocument |
AnnotationOptions(String title,
String contents,
int x,
int y)
Adds an annotation to a page of this
PdfDocument |
Modifier and Type | Method and Description |
---|---|
String |
getContents()
Gets contents.
|
int |
getHeight()
Gets height of your annotation's icon and interactive area in pixels.
|
AnnotationIcon |
getIcon()
Gets
AnnotationIcon used to display the interactive annotation within the PDF. |
double |
getOpacity()
Gets the opacity of the annotation (valid values are from 0.0 to 1.0).
|
String |
getRgbColor()
Gets color of the annotation's background 'sticky note' using Html color notation.
|
String |
getSubject()
Gets subject or 'subheading' of the annotation.
|
String |
getTitle()
Gets title.
|
int |
getWidth()
Gets 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()
Gets a flag that hides the annotation from users.
|
boolean |
isOpen()
Gets a flag for annotation to be opened and readable by default, without user interaction.
|
boolean |
isPrintable()
Gets a flag that the annotation render during user PDF printing operations..
|
boolean |
isReadonly()
Gets a flag that makes the annotation readonly.
|
boolean |
isRotateable()
Gets a flag that allows the annotation to be rotated.
|
void |
setContents(String value)
Sets contents.
|
void |
setHeight(int value)
Sets height of your annotation's icon and interactive area in pixels.
|
void |
setHidden(boolean value)
Sets a flag that hides the annotation from users.
|
void |
setIcon(AnnotationIcon value)
Sets
AnnotationIcon used to display the interactive annotation within the PDF. |
void |
setOpacity(double value)
Sets the opacity of the annotation (valid values are from 0.0 to 1.0).
|
void |
setOpen(boolean value)
Sets a flag for annotation to be opened and readable by default, without user interaction.
|
void |
setPrintable(boolean value)
Sets a flag that the annotation render during user PDF printing operations..
|
void |
setReadonly(boolean value)
Sets a flag that makes the annotation readonly.
|
void |
setRgbColor(String value)
Sets the color of the annotation's background 'sticky note' using Html color notation.
|
void |
setRotateable(boolean value)
Sets A flag that allows the annotation to be rotated.
|
void |
setSubject(String value)
Sets subject or 'subheading' of the annotation.
|
void |
setTitle(String value)
Sets title.
|
void |
setWidth(int value)
Sets width of your annotation's icon and interactive area in pixels.
|
void |
setX(int value)
Sets horizontal X position of the annotation on your page in pixels.
|
void |
setY(int value)
Sets the vertical Y position of the annotation on your page in pixels.
|
public AnnotationOptions(String title, String contents, int x, int y)
PdfDocument
title
- The title of the annotationcontents
- The text content of the annotationx
- The horizontal X position of the annotation on your page in pixelsy
- The vertical Y position of the annotation on your page in pixels. Measured from bottom upwards.public AnnotationOptions(String contents)
PdfDocument
contents
- the text content of the annotationpublic String getTitle()
public void setTitle(String value)
value
- the valuepublic String getSubject()
public void setSubject(String value)
value
- The valuepublic String getContents()
public void setContents(String value)
value
- the valuepublic int getX()
public void setX(int value)
value
- the x valuepublic int getY()
public void setY(int value)
value
- the y valuepublic int getWidth()
public void setWidth(int value)
value
- the valuepublic int getHeight()
public void setHeight(int value)
value
- the valuepublic AnnotationIcon getIcon()
AnnotationIcon
used to display the interactive annotation within the PDF.AnnotationIcon
used to display the interactive annotation within the PDFpublic void setIcon(AnnotationIcon value)
AnnotationIcon
used to display the interactive annotation within the PDF.value
- the AnnotationIcon
public boolean isOpen()
public void setOpen(boolean value)
value
- a flag for annotation to be opened and readable by default, without user interaction. Default is true.public boolean isReadonly()
public void setReadonly(boolean value)
value
- a flag that makes the annotation readonly. Default is true.public boolean isPrintable()
public void setPrintable(boolean value)
value
- a flag that the annotation render during user PDF printing operations.public String getRgbColor()
public void setRgbColor(String value)
value
- the color of the annotation's background 'sticky note' using Html color notation. E.g. '#FFFF33'.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 isHidden()
public void setHidden(boolean value)
value
- a flag that hides the annotation from users. Default is false.public boolean isRotateable()
public void setRotateable(boolean value)
value
- a flag that allows the annotation to be rotated. E.g. when the containing page os rotated. Default is false.Copyright © 2022–2023 Iron Software. All rights reserved.