【发布时间】:2013-03-28 11:00:21
【问题描述】:
我曾经用这个库 FPDF 制作了一些非常简单的 PDF,现在我正在尝试制作一个“结果页面”,它必须显示类似这张图片的内容,但所有内容都有边框,而不是每个细胞。
我已经在 FPDF 中得到了它,制作了 Will Cells(不知道这是否是最好的方法),并且代码是这样的(目前我手动添加了结果,只是想弄清楚它是如何实现的看起来像):
//SimpleTable
function SimpleTable() {
$this->Cell(280,15,"Inscription Number: 1",0);
$this->Cell(265,15,"Date: 28/03/2008",0);
$this->Ln();
$this->Cell(265,15,"Name and Surname: Name Surname ",0);
$this->Cell(265,15,"",0);
$this->Ln();
$this->Cell(280,15,"Address: Address",0);
$this->Cell(265,15,"",0);
$this->Ln();
$this->Cell(280,15,"Zip Code: Zip Code",0);
$this->Cell(280,15,"City: City",0);
$this->Ln();
$this->Cell(280,15,"Year of birth: Birthday",0);
$this->Cell(280,15,"Age: Age",0);
$this->Ln();
$this->Cell(280,15,"VIP: No - First Time: Yes",0);
$this->Cell(280,15,"School: My school",0);
}
希望您能帮助我如何将所有结果合并为一个,我无法做到这一点,也没有找到任何东西。
再次感谢您的宝贵时间,一如既往!!!
【问题讨论】: