constrainRect method
Implementation
PdfRect constrainRect({
double width = double.infinity,
double height = double.infinity,
}) {
final result = PdfPoint(constrainWidth(width), constrainHeight(height));
return PdfRect.fromPoints(PdfPoint.zero, result);
}