簡體   English   中英

php 類 tcpdf。 刪除底行,高於頁碼

[英]php class tcpdf. delete bottom line, above page numder

我使用類tcpdf來創建pdf文檔。

然后我有一個方法$pdf->SetFooterMargin(15); , 在數字上方插入數字頁和黑線。

我想刪除這一行。 我怎樣才能做到這一點。

看看這個例子 頁碼上方沒有一行,這是頁腳的功能

public function Footer() {
    // Position at 15 mm from bottom
    $this->SetY(-15);
    // Set font
    $this->SetFont('helvetica', 'I', 8);
    // Page number
    $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
}

編輯:就這樣吧

public function Footer() {
    // Position at 15 mm from bottom
    $this->SetY(-15);
    // Set font
    $this->SetFont('helvetica', 'I', 8);
    // Page number
    $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
} 
$pdf = new DeltaPD ....
...
...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM