procedure RemoveAnnotationObject(Index, ObjectIndex: Integer);
| Index | Integer. Zero-based index of the annotation on the current page. |
| ObjectIndex | Integer. Zero-based index of the object to delete, below AnnotationObjectCount. An out-of-range index raises EPdfError. |
Removes one stroke or shape from an ink or stamp annotation without touching the rest, the annotation dictionary, or the page content
Later objects renumber after a removal, so a loop that deletes several should walk the indexes backwards
On a PDFium build without annotation object editing the call raises rather than failing silently, so a caller always learns that the edit did not happen