【发布时间】:2018-01-23 02:36:12
【问题描述】:
我有一个包含 ±50 个字的文本。所以我想将它添加到同一个单元格中 这是我的代码:
//header
$this->SetX(30);
$this->Cell(270, 20, "Suggested Improvement ",0, 0, 'C', true);
$this->SetX(300);
$this->Cell(270, 20, "Current Situation ",0, 0, 'C', true);
//data retrieved from DB
$this->Ln(20);
$this->SetTextColor(0);
$this->SetFillColor(19, 68, 160);
$this->SetLineWidth(0.25);
$this->SetX(30.5);
$this->Cell(269, 100,$row1['Suggested Improvement'], 1, 0, 'C', false);
$this->SetX(300);
$this->Cell(269.5, 100,$row1['Current Situation'], 1, 0, 'L', false);
如何使文本从右上角开始并仅填充在此块中?
【问题讨论】:
-
您使用什么库来生成 PDF 文件?
-
@Phylogenesis 我也使用了
multicell,但它给了我相同的结果。我只在我的 php 脚本中包含了require('fpdf.php')