Had one of you ever problems when you save a PDF on the server with DOMPDF and if you want to look/open the PDF on the server, afterwards don't see characters but blocks instead?
I have the following for output.
//Download PDF
$dompdf->stream("Invoice: ".$row['number'].".pdf", array("Attachment"
=> true));
//save the pdf file on the server
file_put_contents('uploads/'.$row['number'].'.pdf', $dompdf-
>output());
And this for styling:
*{ font-family: DejaVu Sans;}
@font-face {
font-family: "DejaVuSans";
font-style: normal;
font-weight: normal;
src: url('fonts/DejaVuSans.ttf') format('truetype');
}