How to disable annotation rotation

To disable the annotation rotation user interface (UI), call annotationRotationEnabled(false) in PdfActivityConfiguration.Builder or PdfConfiguration.Builder:

val configuration = PdfActivityConfiguration.Builder(context)
    .annotationRotationEnabled(false)
    .build()

// You can set the configuration when building the `PdfActivity` intent.
val intent = PdfActivityIntentBuilder.fromUri(context, documentUri)
    .configuration(configuration)
    .build()

context.startActivity(intent)