Closed GoogleCodeExporter closed 9 years ago
It sounds like maybe the document is being sent. Maybe the headers are not set
correctly.
Do you have a link to the problem page we can test? Or can you at least post a
sample of what is displayed in the webpage box?
If you're still testing, it also may be worthwhile to try out the 0.6.0 code
(still in beta, but fairly stable).
Original comment by eclecticgeek
on 29 Nov 2011 at 6:48
I have simplified my code, and it works great in IE8 (except need to figure how
to deal with the multiple space issue). I get the download box, just as
desired. The problem now is that when I do it in Chrome, I don't get the
open/save/cancel dialog, but rather I just get the save dialog.
The current php script is:
<?php
ini_set("memory_limit","24M");
session_start();
$buff = $_GET['buff'];
include('dompdf/cppdf/dompdf_config.inc.php');
$dompdf = new DOMPDF();
$dompdf->load_html($buff);
$dompdf->render();
$dompdf->stream("test.pdf",array("Attachment" => 1));
exit;
?>
Original comment by dloughli...@gmail.com
on 30 Nov 2011 at 2:39
Glad you were able to address your issue. Simplifying your code as much as
possible always helps!
It looks to me that Chrome doesn't have an option to open a PDF rather than
save it. So if you want it to display rather than download you'll have to set
the attachment option to 0. The user can then manually save the PDF.
Ref:
http://www.google.com/support/forum/p/Chrome/thread?tid=1d571c09708dea01&hl=en
http://code.google.com/p/chromium/issues/detail?id=333
Original comment by eclecticgeek
on 1 Dec 2011 at 7:07
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
dloughli...@gmail.com
on 28 Nov 2011 at 6:04