PdfViewerAnnotation
One in-viewer highlight annotation, expressed in the same coordinate system as com.conamobile.pdfkmp.text.PdfTextRun and PdfSearchHighlight — PDF points, top-left origin, Y growing downward — so a highlight scales with pinch zoom exactly like a search-match rectangle does.
Honest scope: these annotations are an overlay only. They are held in viewer state and painted on top of the rasterised page; they are not written back into the encoded PDF bytes. The bytes handed to share / save / print are untouched, so a highlight is not visible if the same PDF is opened in another reader. Persist them yourself via KmpPdfViewer's onAnnotationsChanged callback (serialise the list) and restore through initialAnnotations — see that composable's KDoc.
Constructors
Properties
fill colour painted over the page. Defaults to the translucent yellow DefaultHighlightColor, matching the look of a physical highlighter pen and the in-document search highlights.