Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom DomPDF names

Tags:

php

dompdf

I can render a DomPDF file with the following line :

$dompdf->stream($fileNo.$name.$description.".pdf");

It outputs a pdf that looks like : 121CharlesLakeHome.pdf

How would I put a dash in there to make it look like this : 121-Charles-LakeHome.pdf

I have tried this :

$dompdf->stream($fileNo."-"$name."-"$description.".pdf");

No Workie. Any Suggestions?

like image 264
Steven Avatar asked Jul 20 '26 22:07

Steven


1 Answers

got syntax error. You forgot dot(point) '.' in string $dompdf->stream($fileNo."-"$name."-"$description.".pdf"); should be this $dompdf->stream($fileNo."-".$name."-".$description.".pdf");

like image 60
Naumov Avatar answered Jul 23 '26 12:07

Naumov