GetAnnotationHitsJSON

Annotations, Diagnostics, JSON

Description

Returns every annotation hit at a point on the selected page as stable JSON ordered from topmost to bottommost

Syntax

Function TPDFlib.GetAnnotationHitsJSON(X, Y, Tolerance: Double; Options: Integer): WideString;

Parameters

X, YPoint in the current document unit and origin convention
ToleranceAdditional hit radius in current document units
OptionsUses the same option bits as HitTestAnnotation

Return values

A JSON object containing page, x, y, tolerance, a hits array and count

Each hit contains its current index, zOrder, subtype and public-coordinate rect

See also

HitTestAnnotation, MoveAnnotationZOrder