我曾经用这个库 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);
}
希望您能帮助我如何将所有结果合并为一个,我无法做到这一点,也没有找到任何东西。
再次感谢您的时间,一如既往!!!!