How to disable annotation rotation

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

val configuration = PdfActivityConfiguration.Builder(context)
    .disableAnnotationRotation()
    .build()

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

context.startActivity(intent)