AnnotationCollection
Overview
AnnotationCollection is a class in Aspose.Pdf FOSS for Java.
Inherits from: Iterable<Annotation>.
Collection of annotations on a page (ISO 32000-1:2008, §12.5).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of annotations in this collection. |
Methods
| Signature | Description |
|---|---|
AnnotationCollection(annotsArray: COSArray, page: Page, parser: PDFParser) | Constructs an annotation collection wrapping the given /Annots COSArray. |
get(index: int) → Annotation | Returns the annotation at the specified 1-based index. |
getCount() → int | Returns the number of annotations in this collection. |
size() → int | Returns the number of annotations in this collection. |
add(annotation: Annotation) | Adds an annotation to this collection and the underlying COS array. |
delete(index: int) | Removes the annotation at the specified 1-based index. |
delete(annotation: Annotation) | Removes the specified annotation from this collection. |
iterator() → Iterator<Annotation> | Returns an iterator over the annotations in this collection. |