FPDF - Bold only part of the string in Multicell

Asked

Viewed 2,121 times

4

My problem is this, I’m doing an FPDF certificate, and there are parts of strings that have to be bold for ex:

CODE:

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

The output would be:

Make sure that Marco

What I want is :

Make sure that Marco

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>');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.