我有一个PHP,使用FPDF库从DB数据创建PDF。
我使用头显示标题和徽标。标志在所有页面显示正确,但文本没有出现在第一页,只出现在其他页面。
我使用这个函数:
function Header() {
$this->SetDrawColor(31,124,14);
$this->Line(10,15,17,15);
$this->Image('someLogo.png',20,10);
$this->Text(100,25,"TITTLE");
$this->Line(50,15,200,15);
$this->Line(200,15,200,20);
$this->Line(10,32,17,32);
$this->Line(50,32,200,32);
$this->Line(200,32,200,27);
$this->Ln(50);
}
这些线画了一个类似框架的东西。
谢谢!
解决。我忘了为标题文本定义排版,然后他们从表函数中得到它,并显示在下一页…
泰!div; D