Hello,
I'm streaming a PDF to IE6 (under 2000 or XP) results in an empty browser window. My closing tags are as follows:
pdf_end_page($pdf);
pdf_close($pdf);
$buf = pdf_get_buffer($pdf);
$len = strlen($buf);
header ("content-type: application/pdf");
header ("content-length: $len");
header ("Content-Disposition: inline; filename=report.pdf");
echo $buf;
pdf_delete($pdf);
If I uncheck the option "Display PDF in Browser" in Acrobat and re-run the report, I get an open/saveas dialog box. That works and the PDF looks great, but I don't want to depend on a feature that all my users will have to change.
I've read about this particular issue elsewhere, but could not find any real answers, solutions or a worthwhile workaround (even at Adobe or PDFlib).
Has anyone else had a similar problem? What was you fix/work around?
Thanks,
BG