vendredi 24 juin 2016

ErrorException in tcpdf.php line 3103: Undefined property

I am using Laravel TCPDF service provider elibyy/tcpdf-laravel. Link to github

I have extended the tcpdf class.(Working fine)

Now i want to add a page in the pdf, but its showing this error:

ErrorException in tcpdf.php line 3103: Undefined property: App\Pdfs\Pdf::$inxobj

in tcpdf.php, the code is

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

showing error in this line

if ($this->inxobj) {



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28RQJ6y
via IFTTT

Aucun commentaire:

Enregistrer un commentaire