Class Annotation_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Annotation_Api
The type Annotation api.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y) Adds an annotation to a page of thisInternalPdfDocumentstatic voidaddTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y, int width) Adds an annotation to a page of thisInternalPdfDocumentstatic voidaddTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y, int width, int height) Adds an annotation to a page of thisInternalPdfDocumentstatic intgetAnnotationCount(InternalPdfDocument internalPdfDocument, int pageIndex) Retrieve the number of annotations contained on the specified page
- 
Constructor Details- 
Annotation_Apipublic Annotation_Api()
 
- 
- 
Method Details- 
addTextAnnotationpublic static void addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y, int width) Adds an annotation to a page of thisInternalPdfDocument- Parameters:
- internalPdfDocument- the internal pdf document
- textAnnotation- The annotation as a- TextAnnotationobject.
- pageIndex- Index of the page to add the annotation. The first page has a PageIndex of 0
- 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.
- width- The width of your annotation's icon and interactive area in pixels
 
- 
addTextAnnotationpublic static void addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y, int width, int height) Adds an annotation to a page of thisInternalPdfDocument- Parameters:
- internalPdfDocument- the internal pdf document
- textAnnotation- The annotation as a- TextAnnotationobject.
- pageIndex- Index of the page to add the annotation. The first page has a PageIndex of 0
- 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.
- width- The width of your annotation's icon and interactive area in pixels
- height- The height of your annotation's icon and interactive area in pixels
 
- 
addTextAnnotationpublic static void addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y) Adds an annotation to a page of thisInternalPdfDocument- Parameters:
- internalPdfDocument- the internal pdf document
- textAnnotation- The annotation as a- TextAnnotationobject.
- pageIndex- Index of the page to add the annotation. The first page has a PageIndex of 0
- 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.
 
- 
getAnnotationCountRetrieve the number of annotations contained on the specified page- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndex- Page index
- Returns:
- Number of annotations contained on the page
 
 
-