AnnotationCollection

AnnotationCollection

Tổng quan

AnnotationCollection là một lớp trong Aspose.PDF FOSS cho Python.

Bọc dạng dãy có thể thay đổi cho các chú thích trang.

Lớp này cung cấp 6 phương thức để làm việc với các đối tượng AnnotationCollection trong các chương trình Python. Các phương thức khả dụng bao gồm: __init__, add, clear, delete, generate_appearances, insert. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng Python nào sau khi cài đặt gói Aspose.PDF FOSS cho Python.

Phương thức

Chữ kýMô tả
__init__(page: Page)Calls init(trang) trên thể hiện AnnotationCollection này.
`add(subtype: str, rect: tuple[float, float, float, float], contents: str, title: strNone, appearance_normal: bytes
`insert(index: int, subtype: str, rect: tuple[float, float, float, float], contents: str, title: strNone, appearance_normal: bytes
delete(index: int)Gọi delete(index) trên thể hiện AnnotationCollection này.
clear()Gọi clear trên thể hiện AnnotationCollection này.
generate_appearances(force: bool) → intTổng hợp các appearance streams còn thiếu cho mọi chú thích trên trang.

Xem thêm

 Tiếng Việt