Interface: IRotationApi
API for interacting with the page rotation of a IViewerCardInstance
Methods
rotateAllPagesClockwise()
rotateAllPagesClockwise(): Promise
<boolean
>
Rotate all of the pages in the document clockwise by 90 degrees
Returns
Promise
<boolean
>
rotateCurrentPageClockwise()
rotateCurrentPageClockwise(): Promise
<boolean
>
Rotates the current page clockwise by 90 degrees
Returns
Promise
<boolean
>
setPageRotation(rotation
, index
): Promise
<boolean
>
Sets the page rotation for the page at the specified index
Parameters
• rotation: number
The page rotation in degrees. Must be 0, 90, 180, or 270.
• index: number
The 0-based index of the page to rotate
Returns
Promise
<boolean
>
setPageRotationAllImages(rotation
): Promise
<boolean
>
Sets the page rotation for all of the pages in the document
Parameters
• rotation: number
The page rotation in degrees. Must be 0, 90, 180, or 270.
Returns
Promise
<boolean
>