set('isHtml5ParserEnabled', true);
$options->set('isRemoteEnabled', true); // Enable remote files to be fetched
$dompdf = new Dompdf($options);
// HTML content for the PDF
$html = '
Sample PDF with Image
';
$dompdf->loadHtml($html);
// (Optional) Set up the paper size and orientation
$dompdf->setPaper('A4', 'portrait');
// Render the HTML as PDF
$dompdf->render();
// Output the generated PDF to Browser
$dompdf->stream("sample.pdf", array("Attachment" => false));