PDFium Delphi Component Docs

AnnotationObjectCount メソッド

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

構文

function AnnotationObjectCount(Index: Integer): Integer;

IndexInteger。現在のページでの注釈の 0 始まりインデックス。AnnotationCount の範囲外のインデックスは EPdfError を発生させます
ResultInteger。その注釈が所有するページオブジェクトの数。注釈が代わりにアピアランスストリームで描画している場合は 0

説明

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

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

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

関連項目

AnnotationObjectInfo, AddPathToAnnotation, RemoveAnnotationObject, AnnotationCount