addAnnotationToPage

abstract suspend fun addAnnotationToPage(annotation: Annotation)

Adds annotation to the owner PDF document asynchronously using Kotlin coroutines. The annotation will be attached to the page set in its constructor.

Parameters

annotation

Annotation to be added to the document.


abstract suspend fun addAnnotationToPage(annotation: Annotation, zIndex: Int)

Adds annotation to the owner PDF document at the specified z-index. The annotation will be attached to the page set in its constructor.

Parameters

annotation

Annotation to be added to the document.

zIndex

Z-index at which the annotation will be inserted.