Zunenonooo / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

View pdf in browser but save with wrong file name #531

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In ffx when I disable the adobe plugin, a download box appears with the correct 
file name. In IE8 I cant disable the adobe plugin for some reason, so it always 
opens in browser. This works fine, however, in both ffx and IE8, when I press 
the save button from the adobe toolbar I get the wrong file name.

Original issue reported on code.google.com by shiva.ch...@gmail.com on 10 Sep 2012 at 11:00

GoogleCodeExporter commented 8 years ago
If your goal is to save the file you should use:
$dompdf->stream('filename.pdf',array('Attachment'=>1));

Attachment should be 1 by default. I'm not sure how the browsers deal with a 
specified filename if the PDF is displayed in the browser. It may ignore the 
name and use the name of the PHP file. I'll have to do more research on this.

Also, which version of dompdf?

Original comment by eclecticgeek on 10 Sep 2012 at 5:58

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00