PDFium Delphi Component Docs

AnnotationObjectCount メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
注釈が自身を描画するために使用するページオブジェクトの数を数えます

構文

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.

説明

ink と stamp 注釈はアートワークをページコンテンツではなくページオブジェクトとして保持するため、これは注釈が表示するものを検査・編集するためのエントリポイントです

他のサブタイプは通常 0 を返します。アピアランスは /AP ストリームから来ており、PDFium はそれをオブジェクトリストとして公開しません

カウントはライブ値です。AddPathToAnnotationRemoveAnnotationObject の実行と同時に変化します

関連項目

AnnotationObjectInfo, AddPathToAnnotation, RemoveAnnotationObject, AnnotationCount