function AnnotationSupportsAttachmentPoints(AnnotIndex: Integer): Boolean;
| AnnotIndex | Integer. Zero-based index of an annotation on the active page |
| Result | Boolean. True for annotation types that accept quadpoints, principally text markup and link annotations |
PDFium distinguishes two different questions that are easy to conflate: whether an annotation type accepts quadpoints, and whether this particular annotation currently has any. TPdfAnnotation.HasAttachmentPoints answers the second by reporting stored quadpoint sets; this method answers the first through FPDFAnnot_HasAttachmentPoints
Use it before constructing an edit that writes quadpoints: a newly created highlight or link supports them even while its stored set is still empty, so a check based only on stored data would wrongly reject the edit
The page must be active and AnnotIndex must be within the annotation count of that page. The annotation handle opened for the query is closed before the call returns