AnnotationCollection

AnnotationCollection

Overview

AnnotationCollection is a type in Aspose.PDF FOSS for Go.

AnnotationCollection is the live, ordered set of annotations attached to a single page.

This type provides 7 methods for working with AnnotationCollection objects in Go programs. Available methods include: Add, All, At, Count, Delete, DeleteAt, Flatten. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
Count()intCount reports how many annotations live on this page.
All()[]AnnotationAll returns the page’s annotations as a slice.
Add(a: Annotation)errorAdd attaches an annotation to this page.
At(index: int)AnnotationAt returns the annotation at the given index.
Delete(a: Annotation)boolDelete removes the annotation from this page.
DeleteAt(index: int)errorDeleteAt removes the annotation at the given index.
Flatten()errorFlatten bakes every annotation on the page into the page content and removes it.

See Also