Despite using the stream method with DOMPDF, my PDFs were downloading instead of displaying in the browser. This guide shows a quick fix for this problem. Notes: codewithsusan....
I get this error: too many arguments to function stream(). how do i fix it?
@codewithsusan
3 ай бұрын
Can you share the full line that invokes stream? Does it exactly match the one shown in the example: $dompdf->stream("", ["Attachment" => false]);
@ItsMe-rl7dt
3 ай бұрын
@@codewithsusan Sure, Iam trying both *return $pdf->stream('List Customer.pdf', ["Attachment" => false]);* and *return $pdf->stream('List Customer.pdf', array ("Attachment" => false));* gave me the same error
@codewithsusan
3 ай бұрын
@@ItsMe-rl7dt Your code looks fine. Does the error show details about file and line number within the dompdf core where the error is being triggered?
@ItsMe-rl7dt
3 ай бұрын
@@codewithsusan nope, the error show only in my VSCode, i suppose it from my extension but if i still try to run it become just a white screen after I press the print button
Пікірлер: 5