PDFium Delphi Component Docs

UpdateAnnotationObject method

Component: TPdf  ·  Unit: PDFium
Tell an annotation that one of its page objects has been modified.

Syntax

procedure UpdateAnnotationObject(AnnotIndex: Integer; PageObj: Pointer);

AnnotIndexInteger. Zero-based index of the annotation on the current page.
PageObjPointer. Handle of an object already owned by that annotation, typically the Handle field of AnnotationObjectInfo. nil is ignored.

Description

Editing an object handle changes the object but leaves the annotation unaware, so its appearance is not rebuilt. This call marks the object as changed and refreshes the page, which is what makes the edit visible when the page renders or is saved

It applies to objects the annotation already owns; adding new artwork goes through AddPathToAnnotation

On a PDFium build without annotation object editing the call returns without changing anything

See Also

AnnotationObjectInfo, RefreshAppearance, AddPathToAnnotation, UpdatePage