1. Generate pdf
include_once("dompdf_config.inc.php");
$content = 'Test content!!';
$dompdf = new DOMPDF();
$dompdf->load_html($order_content);
$dompdf->render();
$outfile ="test.pdf";
//download pdf(Attachment will be false if you want to render in your browser)
$dompdf->stream($outfile, array("Attachment" => true));
//will save pdf
$pdf = $dompdf->output();
file_put_contents($outfile, $pdf);
include_once("dompdf_config.inc.php");
$content = 'Test content!!';
$dompdf = new DOMPDF();
$dompdf->load_html($order_content);
$dompdf->render();
$outfile ="test.pdf";
//download pdf(Attachment will be false if you want to render in your browser)
$dompdf->stream($outfile, array("Attachment" => true));
//will save pdf
$pdf = $dompdf->output();
file_put_contents($outfile, $pdf);