ratioPageSize

fun ratioPageSize(maxPageSize: Size): RectF(source)

Returns a rectangle whose dimensions fit within maxPageSize without changing orientation or aspect ratio. Sizes that already fit are returned at their original dimensions.

Throws

if this size or maxPageSize is empty