This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/android/knowledge-base/disabling-annotation-rotation.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. 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)