答案 0 :(得分:0)
好的..试试吧。只是一个例子..一个想法。好吗?
$pdf->SetFillColor(255,0,0);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(128,0,0);
$pdf->SetLineWidth(.3);
// Title row
$pdf->SetFont('', 'B');
$pdf->Cell(100, 8, "LEARNING POTENTIAL", 1, 0, 'L', true);
$pdf->SetFont('', '');
$pdf->Cell(20, 8, "Score", 1, 0, 'C', true);
$pdf->Cell(20, 8, "Results", 1, 0, 'C', true);
$pdf->>Ln();
// Data rows
// (loop) foreach($data as $row) {
$pdf->SetFont('', 'B');
$pdf->Cell(100, 8, "Reasoning", "LTR", 0, 'L');
$pdf->Cell(20, 8, "", "LTR");
$pdf->Cell(20, 8, "", "LTR");
$pdf->>Ln();
$pdf->SetFont('', 'B');
$pdf->Cell(100, 8, "The ability to interpret information and", "LR", 0, 'L');
$pdf->SetFont('', '');
$pdf->Cell(20, 8, "6", "LR");
$pdf->Cell(20, 8, "Effective", "LR");
$pdf->>Ln();
$pdf->SetFont('', 'B');
$pdf->Cell(100, 8, "drawing accurate conclusions", "LBR", 0, 'L');
$pdf->Cell(20, 8, "", "LBR");
$pdf->Cell(20, 8, "", "LBR");
$pdf->>Ln();
// (end loop)
我将每个数据行分成3行。