AnnotationCollection
AnnotationCollection
ภาพรวม
AnnotationCollection เป็นคลาสใน Aspose.PDF FOSS สำหรับ Python.
ตัวหุ้มแบบ mutable ที่คล้ายลำดับเหนือคำอธิบายของหน้า.
คลาสนี้ให้ 6 เมธอดสำหรับทำงานกับอ็อบเจ็กต์ AnnotationCollection ในโปรแกรม Python. เมธอดที่มี ได้แก่: __init__, add, clear, delete, generate_appearances, insert. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใดก็ได้หลังจากติดตั้งแพ็กเกจ Aspose.PDF FOSS สำหรับ Python package.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__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) | เรียกใช้ delete(index) บนอินสแตนซ์ AnnotationCollection นี้. |
clear() | เรียก clear บนอินสแตนซ์ AnnotationCollection นี้. |
generate_appearances(force: bool) → int | สังเคราะห์สตรีม appearance ที่หายไปสำหรับทุก annotation บนหน้า. |