Skip to content
This repository has been archived by the owner on Mar 19, 2018. It is now read-only.

Undefined property: Elibyy\TCPDF\Pdf::$inxobj #5

Closed
ahmednumaan opened this issue May 26, 2015 · 1 comment
Closed

Undefined property: Elibyy\TCPDF\Pdf::$inxobj #5

ahmednumaan opened this issue May 26, 2015 · 1 comment

Comments

@ahmednumaan
Copy link

Getting this error in the following function:
ErrorException in tcpdf.php line 3103:
Undefined property: Elibyy\TCPDF\Pdf::$inxobj

public function pdf_order($data, $order_id) {
ob_start();
//$this->getGenerateAffair($order_id);
$pdf = new PDF($orientation = 'P', $unit = 'in', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false, $pdfa = false);
$pdf::SetPrintHeader(false);
$pdf::SetPrintFooter(false);
$pdf::AddPage();
$pdf::setHtmlVSpace(array('p' => array(array('n' => 0.01), array('n' => 0.01))));
$html = view('app.pdf.order/en_p1', $data)->render();
$pdf::writeHTML($html, true, false, true, false, '');

    $pdf::AddPage();
    $html = view('app.pdf.order/en_p2', $data)->render();
    $pdf::writeHTML($html, true, false, true, false, '');
    $pdf::lastPage();
    $path = "./pdf/affairs/" . $order_id;
    if (file_exists($path) == false) {
        File::makeDirectory($path, $mode = 0777);
    }
    $pdf::Output(__DIR__ . '\..\..\..\public\pdf\affairs\\' . $order_id . '\\' . $order_id . '_affar.pdf', 'F');
    ob_end_clean();
    return;
}
@elibyy
Copy link
Owner

elibyy commented Jun 3, 2015

this problem seems to be related to tcpdf itself

@elibyy elibyy closed this as completed Jun 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants