PDFium Delphi Component Docs

RemoveAnnotationObject メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
注釈から 1 つのページオブジェクトを削除します

構文

procedure RemoveAnnotationObject(Index, ObjectIndex: Integer);

IndexInteger. Zero-based index of the annotation on the current page.
ObjectIndexInteger. Zero-based index of the object to delete, below AnnotationObjectCount. An out-of-range index raises EPdfError.

説明

ink または stamp 注釈から、残り、注釈辞書、ページコンテンツに触れずに 1 つのストロークや形状を削除します

削除後に後続のオブジェクトは番号が振り直されるため、複数を削除するループはインデックスを逆順に走査するべきです

注釈オブジェクト編集を持たない PDFium ビルドでは、黙って失敗せずに例外を発生させるため、呼び出し側は編集が行われなかったことを常に知ります

関連項目

AnnotationObjectCount, AddPathToAnnotation, DeleteAnnotation, UpdateAnnotationObject