Class AnnotationManager
- java.lang.Object
 - 
- com.ironsoftware.ironpdf.annotation.AnnotationManager
 
 
- 
public class AnnotationManager extends Object
Class used to add annotations to aPdfDocument. 
- 
- 
Constructor Summary
Constructors Constructor Description AnnotationManager(InternalPdfDocument internalPdfDocument)Please get AnnotationManager byPdfDocument.getAnnotation()instead. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTextAnnotation(AnnotationOptions options, int pageIndex)Adds an annotation to a page of thisInternalPdfDocumentintgetAnnotationCount(int pageIndex)Retrieves the number of annotations contained on the specified page 
 - 
 
- 
- 
Constructor Detail
- 
AnnotationManager
public AnnotationManager(InternalPdfDocument internalPdfDocument)
Please get AnnotationManager byPdfDocument.getAnnotation()instead.- Parameters:
 internalPdfDocument- the internal pdf document
 
 - 
 
- 
Method Detail
- 
addTextAnnotation
public void addTextAnnotation(AnnotationOptions options, int pageIndex)
Adds an annotation to a page of thisInternalPdfDocument- Parameters:
 options- The annotation options as aAnnotationOptionsobject.pageIndex- Index of the page to add the annotation. The first page has a PageIndex of 0
 
- 
getAnnotationCount
public int getAnnotationCount(int pageIndex)
Retrieves the number of annotations contained on the specified page- Parameters:
 pageIndex- Index of the page to get the annotation. The first page has a PageIndex of 0- Returns:
 - Number of annotations contained on the page
 
 
 - 
 
 -