There are 2 options for you:
1) Output both words in separate cells , that is, first "Status:", then "UNPAID". Like this:
$endpage = $pdf->GetPage();
$pdf->setPage($startpage);
$pdf->SetXY(85,$addressypos);
$pdf->SetFont('freesans','B',12);
$pdf->setTextColor( array(0,0,0) );
$pdf->Cell(110,20,'Status:',0,0,'L');
if ($status=="Cancelled") {
$statustext = $_LANG["invoicescancelled"];
$pdf->SetTextColor(245,245,245);
} elseif ($status=="Unpaid") {
$statustext = $_LANG["invoicesunpaid"];
$pdf->SetTextColor(204,0,0);
} elseif ($status=="Paid") {
$statustext = $_LANG["invoicespaid"];
$pdf->SetTextColor(153,204,0);
} elseif ($status=="Refunded") {
$statustext = $_LANG["invoicesrefunded"];
$pdf->SetTextColor(34,68,136);
} elseif ($status=="Collections") {
$statustext = $_LANG["invoicescollections"];
$pdf->SetTextColor(255,204,0);
}
$pdf->Cell(125,20,strtoupper($statustext),0,0,'L');
$pdf->setPage($endpage);
2) Use HTML markup and write HTMLCell () to display the text:
$endpage = $pdf->GetPage();
$pdf->setPage($startpage);
$pdf->SetXY(85,$addressypos);
$pdf->SetFont('freesans','B',12);
if ($status=="Cancelled") {
$statustext = $_LANG["invoicescancelled"];
$color = 'rgb(245,245,245)';
} elseif ($status=="Unpaid") {
$statustext = $_LANG["invoicesunpaid"];
$color = 'rgb(204,0,0)';
} elseif ($status=="Paid") {
$statustext = $_LANG["invoicespaid"];
$color = 'rgb(153,204,0)';
} elseif ($status=="Refunded") {
$statustext = $_LANG["invoicesrefunded"];
$color = 'rgb(34,68,136)';
} elseif ($status=="Collections") {
$statustext = $_LANG["invoicescollections"];
$color = 'rgb(255,204,0)';
}
$html = '<font color="black">Status:</font> '.
'<font style="color:$color">$statustext</font>';
$pdf->writeHTMLCell(110,20,0,0,$html);
$pdf->setPage($endpage);