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).

Properties

NameTypeAccessDescription
countintReadReturns the number of annotations in this collection.

Methods

SignatureDescription
AnnotationCollection(annotsArray: COSArray, page: Page, parser: PDFParser)Constructs an annotation collection wrapping the given /Annots COSArray.
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 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.

See Also