ok
Direktori : /proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/ |
Current File : //proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/test.php |
<?php namespace Dompdf; require_once 'pdf/autoload.inc.php'; ini_set('memory_limit', '-1'); $htmldata=''; include 'mock-result-content.php'; $dompdf = new Dompdf(); $dompdf->loadHtml($htmldata); $options = $dompdf->getOptions(); $options->set(array('isRemoteEnabled' => true)); $dompdf->setOptions($options); $dompdf->set_paper("A4", "portrait"); $dompdf->render(); //$dompdf->stream($fileNo."-".$name."-".$description.".pdf"); $dompdf->stream($download_name.'.pdf',array("Attachment" => true)); exit(0); ?>