setOverlaidAnnotations

open fun setOverlaidAnnotations(@NonNull overlayAnnotations: List<Annotation>)

Sets annotations that should be rendered as overlays. This enables overlay rendering for annotations even when their types are not enabled for overlay rendering via setOverlaidAnnotationTypes.

If annotation is not rendered as overlay, it is rendered within the page image. Rendering as overlay is more performant if you frequently change annotations, but might delay page display and increase memory usage.

NOTE, LINK and FILE are always rendered as overlays.

Parameters

overlayAnnotations

List of annotations that should be rendered as overlays.