addAnnotationToPageAsync

abstract fun addAnnotationToPageAsync(@NonNull annotation: Annotation): Completable

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

Return

Completable which has to be subscribed to for operation to run.

Parameters

annotation

Annotation to be added to the document.


abstract fun addAnnotationToPageAsync(@NonNull annotation: Annotation, zIndex: Int): Completable

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

Return

Completable which has to be subscribed to for operation to run.

Parameters

annotation

Annotation to be added to the document.

zIndex

Z-index at which the annotation will be inserted.