linkAnnotation

open fun linkAnnotation(x: Float, y: Float, width: Float, height: Float, url: String)

Records a hyperlink annotation covering the given rectangle and pointing at url.

Implementations that produce real PDF annotations (iOS) attach a clickable region to the page; implementations whose underlying platform does not expose annotation APIs (Android PdfDocument) default to a no-op so the surrounding visual styling still conveys "this is a link" even if clicks fall through.