Placing two MultiCells next to each other using FPDF in PHP

前端 未结 3 1073
陌清茗
陌清茗 2021-01-18 12:19

I trying to create a custom table using FPDF Cell/MultiCell.

My 1st cell is a MultiCell that has two lines of text. The next cell should then just be pl

3条回答
  •  爱一瞬间的悲伤
    2021-01-18 12:59

    this worked for me

    $pdf->multicell(120, 5, '   ' . $actividad, 0, 'l', true);
    $x = $pdf->GetX();
    $y = $pdf->GetY();
    $pdf->SetXY($x + 120, $y);
    $pdf->Cell(70, -5, '   ' . $claseActividad, '', 0, 'l', true);
    

    result

提交回复
热议问题