最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - TCPDF: textarea overlapping Footer - Stack Overflow

programmeradmin4浏览0评论

I want an editable textarea after all my content in a TCPDF document.

With the below command, I added this textarea, but there comes no new page. If I set the rows to a higher number, the box is getting bigger, but still no new page.

$content .= '<textarea cols="80" rows="16" name="text2"></textarea>';

Does there exists a textarea which I can make bigger or smaller like I want?

my footer is this:

public function Footer() {
    if ($this->last_page_flag) {
        $this->SetY(-15);
        $this->SetFont('helvetica', 'N', 11);

        $text = "Seite ".$this->getAliasNumPage().'/'.$this->getAliasNbPages();
        $this->Cell(0, 5, "Unterschrift:                                Druckdatum: ".date("d.m.Y H:m:s")."          ".$text, 0, false, 'L', 0, '', 0, false, 'T', 'M');
    } else {
        $this->SetY(-15);
        $this->SetX(-114);
        $this->SetFont('helvetica', 'N', 11);
        $text = "Seite ".$this->getAliasNumPage().'/'.$this->getAliasNbPages()."";
        $this->Cell(115, 5, $text, 0, false, 'R', 0, '', 0, false, 'T', 'M');
    }
}

If I only set text the page break runs fine. Only the textareas are the problems.

发布评论

评论列表(0)

  1. 暂无评论