rectFromTopLeft function
Converts a top-left rectangle to a PdfRect (bottom-left).
Implementation
PdfRect rectFromTopLeft({
required double left,
required double top,
required double width,
required double height,
required double pageHeight,
}) {
final bottom = pageHeight - top - height;
return PdfRect(left, bottom, width, height);
}