addAnnotationToPage

abstract fun addAnnotationToPage(@NonNull annotation: Annotation)

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

Parameters

annotation

Annotation to be added to the document.


abstract fun addAnnotationToPage(@NonNull 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.