resize Function
@JvmOverloads external fun resize(width: Int, height: Int, uniform: Boolean = false)
Scales this page to the given size, replacing its pixels.
Parameters
- width — the target width in pixels; must be positive
- height — the target height in pixels; must be positive
- uniform —
trueto preserve the aspect ratio, fitting the page inside the given size rather than stretching to it
Throws
- IllegalArgumentException — if
widthorheightis zero or negative - ScanningSdkException — if this picture has been closed, or if scaling fails in the engine