Interface: IRotatableViewer

Rotation API for IViewerCardInstances

Extended by

Methods

getPageRotation()

getPageRotation(index): number

Gets the page rotations in degrees for a particular page

Parameters

index: number

Returns

number

Page rotation value


rotateAllPagesClockwise()

rotateAllPagesClockwise(): Promise<boolean>

Rotates the all pages clockwise 90 degrees based on the current page (The topmost image) orientation and updates the database

Returns

Promise<boolean>

Promise that resolves to a boolean indicating whether it succeeded or not


rotateCurrentPageClockwise()

rotateCurrentPageClockwise(): Promise<boolean>

Rotates the current page (The topmost image) clockwise 90 degrees and updates the database

Returns

Promise<boolean>

Promise that resolves to a boolean indicating whether it succeeded or not


setPageRotation()

setPageRotation(rotation, index): Promise<boolean>

Sets the page rotation for a particular page and updates the database

Only accepts intervals of 90 degrees

Parameters

rotation: number

index: number

Returns

Promise<boolean>

Promise that resolves to a boolean indicating whether it succeeded or not


setPageRotationAllImages()

setPageRotationAllImages(rotation): Promise<boolean>

Sets all page rotations for a document and updates the database

Only accepts intervals of 90 degrees

Parameters

rotation: number

Returns

Promise<boolean>

Promise that resolves to a boolean indicating whether it succeeded or not