tcpdf.php第3103行中的ErrorException:未定义的属性

时间:2016-06-24 13:15:22

标签: php laravel-5 tcpdf

我正在使用Laravel TCPDF服务提供商elibyy / tcpdf-laravel。 Link to github

我扩展了tcpdf类。(工作正常)

现在我想在pdf中添加一个页面,但它显示了这个错误:

  

tcpdf.php第3103行中的ErrorException:   未定义的属性:App \ Pdfs \ Pdf :: $ inxobj

在tcpdf.php中,代码是

public function AddPage($orientation='', $format='', $keepmargins=false, $tocpage=false) {
    if ($this->inxobj) {
        // we are inside an XObject template
        return;
    }
    if (!isset($this->original_lMargin) OR $keepmargins) {
        $this->original_lMargin = $this->lMargin;
    }
    if (!isset($this->original_rMargin) OR $keepmargins) {
        $this->original_rMargin = $this->rMargin;
    }
    // terminate previous page
    $this->endPage();
    // start new page
    $this->startPage($orientation, $format, $tocpage);
}

显示此行中的错误

if ($this->inxobj) {

0 个答案:

没有答案