How do you make a table like this with FPDF using PHP?

前端 未结 3 1546
执念已碎
执念已碎 2020-12-16 22:35

How do you make a table like this with FPDF using PHP?

I can\'t seem to figure out how to do this with $this->Cell.

3条回答
  •  既然无缘
    2020-12-16 23:27

    I think i found other solution, here is my solution without empty cell needed.

    $pdf->Cell(40,18,'Words Here', 1,0, 'C');
    $x = $pdf->GetX();
    $pdf->Cell(40,6,'Words Here', 1,0);
    $pdf->Cell(40,6,'Words Here', 1,1);
    $pdf->SetX($x);
    $pdf->Cell(40,6,'[x] abc', 1,0);
    $pdf->Cell(40,6,'[x] Checkbox 1', 1,1);
    $pdf->SetX($x);
    $pdf->Cell(40,6,'[x] def', 1,0);
    $pdf->Cell(40,6,'[x] Checkbox 1', 1,1);
    

    And here is the result:

提交回复
热议问题