transformPoint function
Implementation
PdfPoint transformPoint(Matrix4 transform, PdfPoint point) {
final position3 = Vector3(point.x, point.y, 0);
final transformed3 = transform.perspectiveTransform(position3);
return PdfPoint(transformed3.x, transformed3.y);
}