Level 9
how about converting it to base64 and returning it
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
am using dompdf/dompdf package, so i want to return the pdf binary file via api
kindly advice what can i do
$pdf = PDF::loadView('waybill-track.waybillprogresspdf', compact('waybilltrack','items'));
return $pdf->stream('waybilllable.pdf', array('Attachment' => 0));
Please or to participate in this conversation.