AnnotationCollection

AnnotationCollection

Overview

AnnotationCollection is a class in Aspose.PDF FOSS for Python.

Mutable sequence-like wrapper over page annotations.

This class provides 6 methods for working with AnnotationCollection objects in Python programs. Available methods include: __init__, add, clear, delete, generate_appearances, insert. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
__init__(page: Page)Calls init(page) on this AnnotationCollection instance.
add(subtype: str, rect: tuple[float, float, float, float], contents: str, title: str | None, appearance_normal: bytes | bytearray | None, properties: dict[str, Any] | None)AnnotationCalls add(subtype, rect, contents, title, appearance_normal, properties) on this AnnotationCollection instance.
insert(index: int, subtype: str, rect: tuple[float, float, float, float], contents: str, title: str | None, appearance_normal: bytes | bytearray | None, properties: dict[str, Any] | None)AnnotationCalls insert(index, subtype, rect, contents, title, appearance_normal, properties) on this AnnotationCollection instance.
delete(index: int)Calls delete(index) on this AnnotationCollection instance.
clear()Calls clear on this AnnotationCollection instance.
generate_appearances(force: bool)intSynthesise missing appearance streams for every annotation on the page.

See Also