1

我有一个使用 FPDF 库从数据库数据创建 PDF 的 PHP。

我使用标题来显示标题和徽标。徽标在所有页面中均显示正确,但文本未出现在第一页,仅出现在其他页面上。

我使用这个功能:

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);
}

线条画出类似框架的东西。

谢谢!

4

1 回答 1

1

解决了。我想为标题文本定义排版,然后他们从表格函数中获取它并显示在下一页...

泰!;D

于 2013-04-30T09:07:39.967 回答