AnnotationCollection
개요
AnnotationCollection은 Aspose.PDF FOSS에서 Python용 클래스입니다.
페이지 주석에 대한 가변 시퀀스형 래퍼.
이 클래스는 Python 프로그램에서 AnnotationCollection 객체를 다루기 위한 6개의 메서드를 제공합니다. 사용 가능한 메서드에는 __init__, add, clear, delete, generate_appearances, insert가 포함됩니다. Aspose.PDF FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 모든 공개 멤버에 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
__init__(page: Page) | Calls init(page) 이 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) | 이 AnnotationCollection 인스턴스에서 delete(index)를 호출합니다. |
clear() | 이 AnnotationCollection 인스턴스에 대해 clear를 호출합니다. |
generate_appearances(force: bool) → int | 페이지의 모든 주석에 대해 누락된 appearance 스트림을 합성합니다. |