AnnotationCollection
AnnotationCollection
Przegląd
AnnotationCollection jest klasą w Aspose.PDF FOSS dla Python.
Mutowalne opakowanie przypominające sekwencję nad adnotacjami strony.
Ta klasa udostępnia 6 metod do pracy z obiektami AnnotationCollection w programach Python. Dostępne metody to: __init__, add, clear, delete, generate_appearances, insert. Wszyscy publiczni członkowie są dostępni dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.PDF FOSS dla Python.
Metody
| Sygnatura | Opis |
|---|---|
__init__(page: Page) | Calls init(strona) w tej instancji AnnotationCollection. |
| `add(subtype: str, rect: tuple[float, float, float, float], contents: str, title: str | None, appearance_normal: bytes |
| `insert(index: int, subtype: str, rect: tuple[float, float, float, float], contents: str, title: str | None, appearance_normal: bytes |
delete(index: int) | Wywołuje delete(index) na tej instancji AnnotationCollection. |
clear() | Wywołuje metodę clear na tej instancji AnnotationCollection. |
generate_appearances(force: bool) → int | Syntezuj brakujące strumienie wyglądu dla każdej adnotacji na stronie. |