THotPDF.MoveLoadedAnnotation Method
Moves the specified annotation in the loaded PDF from a source page to a target page, enabling cross-page annotation migration
Declaration
procedure MoveLoadedAnnotation(FromPageIndex, AnnotationIndex, ToPageIndex: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FromPageIndex | Zero-based index of the page where the annotation is currently located |
AnnotationIndex | Zero-based index of the annotation in the source page's annotation list |
ToPageIndex | The zero-based index of the target page the annotation is moving to |
Usage notes
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- After the annotation is moved, the source page's annotation index list is reordered; subsequent index references to the annotations on that page need to be updated accordingly
- If ToPageIndex equals FromPageIndex the method simply reorders the entry and makes no other changes