Class AnnotationOptions
java.lang.Object
com.ironsoftware.ironpdf.annotation.AnnotationOptions
Class used to configure annotations to a 
PdfDocument.
  See: AnnotationManager
- 
Constructor SummaryConstructorsConstructorDescriptionAnnotationOptions(String contents) Adds an annotation to a page of thisPdfDocumentAnnotationOptions(String title, String contents, int x, int y) Adds an annotation to a page of thisPdfDocument
- 
Method SummaryModifier and TypeMethodDescriptionGets contents.intGets height of your annotation's icon and interactive area in pixels.getIcon()GetsAnnotationIconused to display the interactive annotation within the PDF.doubleGets the opacity of the annotation (valid values are from 0.0 to 1.0).Gets color of the annotation's background 'sticky note' using Html color notation.Gets subject or 'subheading' of the annotation.getTitle()Gets title.intgetWidth()Gets width of your annotation's icon and interactive area in pixels.intgetX()Gets the horizontal X position of the annotation on your page in pixels.intgetY()Gets the vertical Y position of the annotation on your page in pixels.booleanisHidden()Gets a flag that hides the annotation from users.booleanisOpen()Gets a flag for annotation to be opened and readable by default, without user interaction.booleanGets a flag that the annotation render during user PDF printing operations..booleanGets a flag that makes the annotation readonly.booleanGets a flag that allows the annotation to be rotated.voidsetContents(String value) Sets contents.voidsetHeight(int value) Sets height of your annotation's icon and interactive area in pixels.voidsetHidden(boolean value) Sets a flag that hides the annotation from users.voidsetIcon(AnnotationIcon value) SetsAnnotationIconused to display the interactive annotation within the PDF.voidsetOpacity(double value) Sets the opacity of the annotation (valid values are from 0.0 to 1.0).voidsetOpen(boolean value) Sets a flag for annotation to be opened and readable by default, without user interaction.voidsetPrintable(boolean value) Sets a flag that the annotation render during user PDF printing operations..voidsetReadonly(boolean value) Sets a flag that makes the annotation readonly.voidsetRgbColor(String value) Sets the color of the annotation's background 'sticky note' using Html color notation.voidsetRotateable(boolean value) Sets A flag that allows the annotation to be rotated.voidsetSubject(String value) Sets subject or 'subheading' of the annotation.voidSets title.voidsetWidth(int value) Sets width of your annotation's icon and interactive area in pixels.voidsetX(int value) Sets horizontal X position of the annotation on your page in pixels.voidsetY(int value) Sets the vertical Y position of the annotation on your page in pixels.
- 
Constructor Details- 
AnnotationOptionsAdds an annotation to a page of thisPdfDocument- Parameters:
- title- The title of the annotation
- contents- The text content of the annotation
- x- The horizontal X position of the annotation on your page in pixels
- y- The vertical Y position of the annotation on your page in pixels. Measured from bottom upwards.
 
- 
AnnotationOptionsAdds an annotation to a page of thisPdfDocument- Parameters:
- contents- the text content of the annotation
 
 
- 
- 
Method Details- 
getTitleGets title.- Returns:
- the title
 
- 
setTitleSets title.- Parameters:
- value- the value
 
- 
getSubjectGets subject or 'subheading' of the annotation.- Returns:
- the subject
 
- 
setSubjectSets subject or 'subheading' of the annotation.- Parameters:
- value- The value
 
- 
getContentsGets contents.- Returns:
- the contents
 
- 
setContentsSets contents.- Parameters:
- value- the value
 
- 
getXpublic int getX()Gets the horizontal X position of the annotation on your page in pixels.- Returns:
- the horizontal X position of the annotation on your page in pixels
 
- 
setXpublic void setX(int value) Sets horizontal X position of the annotation on your page in pixels.- Parameters:
- value- the x value
 
- 
getYpublic int getY()Gets the vertical Y position of the annotation on your page in pixels. Measured from bottom upwards.- Returns:
- the vertical Y position of the annotation on your page in pixels. Measured from bottom upwards.
 
- 
setYpublic void setY(int value) Sets the vertical Y position of the annotation on your page in pixels. Measured from bottom upwards.- Parameters:
- value- the y value
 
- 
getWidthpublic int getWidth()Gets width of your annotation's icon and interactive area in pixels.- Returns:
- the width of your annotation's icon and interactive area in pixels
 
- 
setWidthpublic void setWidth(int value) Sets width of your annotation's icon and interactive area in pixels.- Parameters:
- value- the value
 
- 
getHeightpublic int getHeight()Gets height of your annotation's icon and interactive area in pixels.- Returns:
- the height of your annotation's icon and interactive area in pixels
 
- 
setHeightpublic void setHeight(int value) Sets height of your annotation's icon and interactive area in pixels.- Parameters:
- value- the value
 
- 
getIconGetsAnnotationIconused to display the interactive annotation within the PDF.- Returns:
- the AnnotationIconused to display the interactive annotation within the PDF
 
- 
setIconSetsAnnotationIconused to display the interactive annotation within the PDF.- Parameters:
- value- the- AnnotationIcon
 
- 
isOpenpublic boolean isOpen()Gets a flag for annotation to be opened and readable by default, without user interaction.- Returns:
- a flag for annotation to be opened and readable by default, without user interaction
 
- 
setOpenpublic void setOpen(boolean value) Sets a flag for annotation to be opened and readable by default, without user interaction.- Parameters:
- value- a flag for annotation to be opened and readable by default, without user interaction. Default is true.
 
- 
isReadonlypublic boolean isReadonly()Gets a flag that makes the annotation readonly. Default is true.- Returns:
- a flag that makes the annotation readonly. Default is true.
 
- 
setReadonlypublic void setReadonly(boolean value) Sets a flag that makes the annotation readonly. Default is true.- Parameters:
- value- a flag that makes the annotation readonly. Default is true.
 
- 
isPrintablepublic boolean isPrintable()Gets a flag that the annotation render during user PDF printing operations..- Returns:
- a flag that the annotation render during user PDF printing operations.
 
- 
setPrintablepublic void setPrintable(boolean value) Sets a flag that the annotation render during user PDF printing operations..- Parameters:
- value- a flag that the annotation render during user PDF printing operations.
 
- 
getRgbColorGets color of the annotation's background 'sticky note' using Html color notation. E.g. '#FFFF33'.- Returns:
- the color of the annotation's background 'sticky note' using Html color notation. E.g. '#FFFF33'.
 
- 
setRgbColorSets the color of the annotation's background 'sticky note' using Html color notation. E.g. '#FFFF33'.- Parameters:
- value- the color of the annotation's background 'sticky note' using Html color notation. E.g. '#FFFF33'.
 
- 
getOpacitypublic double getOpacity()Gets the opacity of the annotation (valid values are from 0.0 to 1.0).- Returns:
- the opacity of the annotation (valid values are from 0.0 to 1.0)
 
- 
setOpacitypublic void setOpacity(double value) Sets the opacity of the annotation (valid values are from 0.0 to 1.0).- Parameters:
- value- the opacity of the annotation (valid values are from 0.0 to 1.0).
 
- 
isHiddenpublic boolean isHidden()Gets a flag that hides the annotation from users. Default is false..- Returns:
- a flag that hides the annotation from users. Default is false.
 
- 
setHiddenpublic void setHidden(boolean value) Sets a flag that hides the annotation from users. Default is false..- Parameters:
- value- a flag that hides the annotation from users. Default is false.
 
- 
isRotateablepublic boolean isRotateable()Gets a flag that allows the annotation to be rotated. E.g. when the containing page os rotated. Default is false..- Returns:
- a flag that allows the annotation to be rotated. E.g. when the containing page os rotated. Default is false.
 
- 
setRotateablepublic void setRotateable(boolean value) Sets A flag that allows the annotation to be rotated. E.g. when the containing page os rotated. Default is false..- Parameters:
- value- a flag that allows the annotation to be rotated. E.g. when the containing page os rotated. Default is false.
 
 
-