aspectRatio property
The aspect ratio of the page (width / height).
Returns 1.0 when heightPt is zero to avoid division-by-zero on
malformed pages. Callers should still guard against zero-sized pages
before rendering.
Implementation
double get aspectRatio => heightPt > 0 ? widthPt / heightPt : 1.0;