{RemoteScanObject}.Viewer
All the APIs listed on local viewer are supported.
Additional supported
crop
Crop the specified image using the specified rectangle.
Syntax
crop(index: number,rect: rect): promise<void>;
Parameters
index: The index of the current page.
rect: Some attribute values of the selected area. Please refer to rect.
rotate
Rotate the specified image by the specified angle.
Syntax
rotate(index: number, angle: number, keepSize: boolean): promise<void>;
Parameters
index: Specify the image.
angle: Specify the angle.
keepSize: Whether to keep the original size.
errorCode
Return the error code.
Syntax
readonly errorCode: number;
errorString
Return the error string.
Syntax
readonly errorString: string;