DOMPDFで同時に2つのことを行う必要があります。
以下を一緒に行う必要があります - これは可能ですか?
//print the pdf file to the screen for saving
$dompdf->stream("pdf_filename_".rand(10,1000).".pdf", array("Attachment" => false));
//save the pdf file on the server
file_put_contents('/home/stsnew/public_html/pdf/file.pdf', $dompdf->output());
$dompdf->stream
とが別々に/個別に実行された場合、上記は正常に機能します$dompdf->output()
が、上記のようにそれらを一緒に実行しようとすると、クラッシュします。
ヘルプ/アドバイスをいただければ幸いです。