È possibile con un piccolo trucco. Ho appena fatto che la stampa 2 celle, uno sopra l'altro, in questo modo:
//Setting the text color to black
$pdf->SetTextColor(0,0,0);
//Printing my cell
$pdf->SetFont('Arial','B');
$pdf->Cell(55,5,"Black Text ",1,0,'C');
$pdf->SetXY($coordXbase,$coordY);
//Setting the text color to red
$pdf->SetTextColor(194,8,8);
//Printing another cell, over the other
$pdf->SetFont('Arial','B');
//Give some space from the left border, and print the red text after the black text that is in the cell behind this one.
$pdf->Cell(55,5," Red Text",0,0,'C');
$pdf->SetXY($coordXbase,$coordY);
//Setting the text color back to back, in the next cells.
$pdf->SetTextColor(0,0,0);
Il risultato è stato questo:

perché ero un po 'di fretta, non ho avuto tempo di creare qualche funzione per aiutare con questo, ma questa sarebbe una buona idea del punto di partenza :)
PS: Dillo se voi ragazzi trovate un modo più semplice.
fonte
2013-06-29 13:22:56
OK. Grazie per il vostro interesse. –
Non è possibile dare un indizio a questo link? http://stackoverflow.com/questions/3477372/make-text-wrap-in-a-cell-with-fpdf – hmatar
Ma sono confuso da questo perché vorrei ancora che restasse su una riga. Sto cercando di fare una differenza visiva solo per il colore del testo. Forse ho letto male qualcosa. –