AnnotationCollection

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

NameTypeAccessDescription
countintReadReturns the number of annotations in this collection.

Methods

SignatureDescription
AnnotationCollection(annotsArray: PdfArray, page: Page, parser: PDFParser)Constructs an annotation collection wrapping the given /Annots PdfArray.
get(index: int)AnnotationReturns the annotation at the specified 1-based index.
getCount()intReturns the number of annotations in this collection.
size()intReturns 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.

See Also

 English