Menu
I am rotating text like this
$pdf->RotatedText(17,145,$lefttext,90);
But this $lefttext is entered by the user and needs to be centered between the top and bottom of the page, so the 145 needs to be changed to a variable, based on the length of the text.
I can center horizonal text with something like this
$pdf->Cell(0,$height,$toptext,0,1,’C’);
I have been trying to use GetStringWidth for the rotated text, but am about to pull the only hair I have left out!
Any examples of this code would be appreciated.
Thanks