PDFium Delphi Component Docs

AnnotationObjectCount metode

Komponen: TPdf  ·  Unit: PDFium
Menghitung objek halaman yang digambar oleh sebuah anotasi untuk dirinya sendiri

Syntax

function AnnotationObjectCount(Index: Integer): Integer;

IndexInteger. Zero-based index of the annotation on the current page. An index outside AnnotationCount raises EPdfError.
ResultInteger. Number of page objects owned by that annotation, or 0 when the annotation draws from an appearance stream instead.

Description

Anotasi ink dan stamp membawa karyanya sebagai objek halaman alih-alih sebagai konten halaman, jadi ini adalah titik masuk untuk memeriksa atau mengedit apa yang ditampilkan anotasi semacam itu

Subtipe lain biasanya mengembalikan 0: tampilannya berasal dari stream /AP, yang tidak diekspos PDFium sebagai daftar objek

Jumlah adalah nilai live. Ia berubah segera setelah AddPathToAnnotation atau RemoveAnnotationObject berjalan

See Also

AnnotationObjectInfo, AddPathToAnnotation, RemoveAnnotationObject, AnnotationCount