0

我刚刚开始使用 fphp 并设法获得了我想要的 pdf 文档,但只有一个问题。我目前有这个:

酒吧

我用来获取它的代码是:

$pdf->MultiCell(0,5, "Feedback: " ."",0, "J");
$pdf->SetFillColor(185, 44, 146);
$pdf->Cell($obsObservation1,5,"",0,1,1,"L", "true");

$pdf->MultiCell(0,5, "Challenge: " ."",0, "J");
$pdf->SetFillColor(197, 198, 200);
$pdf->Cell($obsObservation2,5,$currentY,0,1,1,"L", "true");

我希望两个栏都在文本的右侧,左侧对齐。这可能吗?

我意识到我可能不应该使用细胞,但我似乎找不到正确的替代方案。

4

1 回答 1

0

不要使用多单元...

只做普通的细胞......

PS:这可能无法正常工作,因为我输入了它,但它与这些类似......玩它,你会明白的。:)

$pdf->SetY(0);
$pdf->SetFont("Arial","B","13");
$pdf->SetXY(5, $pdf->y + 5);
$pdf->Cell(5, 5, "Feedback :");

$pdf->SetY(0);
$pdf->SetXY(15, $pdf->y + 5);
$pdf->Cell($obsObservation1,5,"",0,1,1,"L", "true");


$pdf->SetY(0);
$pdf->SetFont("Arial","B","13");
$pdf->SetXY(5, $pdf->y + 15);
$pdf->Cell(5, 5, "Challenge :");

$pdf->SetY(0);
$pdf->SetXY(15, $pdf->y + 15);
$pdf->Cell($obsObservation2,5,"",0,1,1,"L", "true");
于 2013-06-13T00:38:37.220 回答