getRects

fun getRects(limit: Int): List<RectF>

Returns a limited number of rectangles that represent this markup annotation in PDF coordinates.

This is useful for avoiding large allocations when only a subset of rects is needed, e.g., for generating a preview of highlighted text.

NOTE: Modifying this list directly or the rects in it will not work. Always assign to rects to update the rectangles.

Return

A list of rects representing this annotation, limited to at most limit elements.

Parameters

limit

Maximum number of rects to return.