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).
This class provides 8 methods for working with AnnotationCollection objects in Java programs.
Available methods include: AnnotationCollection, add, delete, get, getCount, iterator, size.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of annotations in this collection. |
Methods
| Signature | Description |
|---|---|
AnnotationCollection(annotsArray: PdfArray, page: Page, parser: PDFParser) | Constructs an annotation collection wrapping the given /Annots PdfArray. |
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 PDF 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. |