FPDF - Bold only part of string in MultiCell

4

My problem is as follows, I am doing a certificate in FPDF, and there are parts of strings that have to be in bold eg:

CODE:

$nome="Marco";
$string1="Certifica-se que ".$nome;
$pdf->Cell('160','8',$string1,0,1,'L',false);

The result would be:

  

Make sure that Marco

What I intend is:

  

Make sure that Framework

    
asked by anonymous 23.06.2016 / 18:58

1 answer

0

Instead of using Cell, why not use writeHTML with positions?

   $pdf->SetY($pos_Y);
   $pdf->SetX($pos_X);
   $pdf->writeHTML('Certifica-se que <b>MARCO</b>');
    
23.06.2016 / 21:52