How to disable annotation rotation?

Q: How to disable annotation rotation?

If you wish to disable annotation rotation UI, call disableAnnotationRotation() in PdfActivityConfiguration.Builder or PdfConfiguration.Builder:

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

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

context.startActivity(intent)