Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using TCPDF to output to a PDF file.

I would like to print part of the text in bold using the TCPDF statement, how should I do it?

The exact output in a single line should be: How are you Alvin, I am Jodie

Below are my statements:-

$pdf->Cell(0,4,'How are you, ','','','L'); $pdf->SetFont('freesans','B',8);

$pdf->Cell(0,4,'Alvin','','','L');

$pdf->SetFont('freesans','',8);

$pdf->Cell(0,4,', I am ','','','L');

$pdf->SetFont('freesans','B',8);

$pdf->Cell(0,4,'Jodie','','','L');

I can't get it to be printed on the same line.

Please help. Thank you.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.