When creating a rectangle in PDFlib, the anchor point for alignment by default is the bottom left corner. How can I change it to the center of the object instead?
$p->rect($x,$y,$width,$height);