更改导出页面的标题

时间:2019-04-18 09:56:39

标签: php tcpdf

我想在特定页面之后更改导出页面的标题

class MYPDF extends TCPDF {

    public function Header() {

        $image_file = 'img/new.png';

        $this->Image($image_file, 60, 2, 50, '', 'png', '', 'T', false, 300, 'R', false, false, 0, true, false, false);
        // $this->Image($image_file2, 60,0, 50, '', 'png', '', 'T', false, 300, 'L', false, false, 0, true, false, false);
    }

    // Page footer
    public function Footer() {


        $this->SetY(-25);

        $this->SetFont('aealarabiya', '', 6);
        $tDate = date("d/m/Y") . '   ' . date("h:i:sa");
        $this->Ln(8);
        $this->SetFont('aealarabiya', '', 10);
        $this->Cell(0, 10, '  ' . 'aaaa' . '                       ' . $tDate, 1, false, 'R', 0, '', 0, false, 'T', 'M');
    }

}

// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

0 个答案:

没有答案