setRotationOffsets

abstract fun setRotationOffsets(@NonNull pageRotations: SparseIntArray)

Applies a temporary rotation to the specified pages 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 a single page use setRotationOffset.

Parameters

pageRotations

A SparseIntArray mapping the page index to the desired rotation. (One of NO_ROTATION, ROTATION_90, ROTATION_180, ROTATION_270)