setRotationOffset

abstract fun setRotationOffset(pageRotation: Int, @IntRange(from = 0) pageIndex: Int)

Applies a temporary rotation to the specified page of this document. This will change the size reported by the document to match the new rotation. The document will not be modified by this. If you plan on applying a rotation to multiple pages use setRotationOffsets.

Parameters

pageIndex

The page to apply the rotation to.