Class Annotation_Api
- java.lang.Object
-
- com.ironsoftware.ironpdf.internal.staticapi.Annotation_Api
-
public final class Annotation_Api extends Object
The type Annotation api.
-
-
Constructor Summary
Constructors Constructor Description Annotation_Api()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation)
Adds an annotation to a page of thisInternalPdfDocument
static void
addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y)
Adds an annotation to a page of thisInternalPdfDocument
static void
addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation, int pageIndex, int x, int y, int width)
Adds an annotation to a page of thisInternalPdfDocument
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
static List<TextAnnotation>
getAnnotaionList(InternalPdfDocument internalPdfDocument)
static int
getAnnotationCount(InternalPdfDocument internalPdfDocument, int pageIndex)
Retrieve the number of annotations contained on the specified page
-
-
-
Method Detail
-
addTextAnnotation
public 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 documenttextAnnotation
- The annotation as aTextAnnotation
object.
-
addTextAnnotation
public 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 documenttextAnnotation
- The annotation as aTextAnnotation
object.pageIndex
- Index of the page to add the annotation. The first page has a PageIndex of 0x
- 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.width
- The width of your annotation's icon and interactive area in pixelsheight
- The height of your annotation's icon and interactive area in pixels
-
addTextAnnotation
public 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 documenttextAnnotation
- The annotation as aTextAnnotation
object.pageIndex
- Index of the page to add the annotation. The first page has a PageIndex of 0x
- 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.
-
addTextAnnotation
public static void addTextAnnotation(InternalPdfDocument internalPdfDocument, TextAnnotation textAnnotation)
Adds an annotation to a page of thisInternalPdfDocument
- Parameters:
internalPdfDocument
- the internal pdf documenttextAnnotation
- The annotation as aTextAnnotation
object.
-
getAnnotationCount
public static int getAnnotationCount(InternalPdfDocument internalPdfDocument, int pageIndex)
Retrieve the number of annotations contained on the specified page- Parameters:
internalPdfDocument
- the internal pdf documentpageIndex
- Page index- Returns:
- Number of annotations contained on the page
-
getAnnotaionList
public static List<TextAnnotation> getAnnotaionList(InternalPdfDocument internalPdfDocument)
-
-