setRotationOffset
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
pageRotation
One of NO_ROTATION, ROTATION_90, ROTATION_180, ROTATION_270.
pageIndex
The page to apply the rotation to.