bernattorras / dompdf

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

Dompdf Not working properly for IE 7 #549

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want to open pdf directly on web browser so i used the following code
$dompdf = new DOMPDF();
$dompdf->load_html($html);//$html is the htmlfile
$dompdf->render();
$dompdf->stream("sample.pdf", array('Attachment'=>'0'));

This opens pdf perfectly on all browser but not on IE 7.
The output is 
%PDF-1.3
1 0 obj
<< /Type /Catalog
/Outlines 2 0 R
/Pages 3 0 R >>
endobj
2 0 obj
<< /Type /Outlines /Count 0 >>
endobj
3 0 obj
<< /Type /Pages
/Kids [6 0 R
10 0 R
]
/Count 2
/Resources <<
/ProcSet 4 0 R
/Font << 
/F1 8 0 R
/F2 9 0 R
>>
>>
/MediaBox [0.000 0.000 612.000 792.000]
 >>
endobj
4 0 obj
[/PDF /Text ]
endobj
5 0 obj
<<
/Creator (DOMPDF)
/CreationDate (D:20121030152103+05'30')
/ModDate (D:20121030152103+05'30')
>>
endobj.....

Version is dompdf_0-6-0_beta3.
What is the error?

Original issue reported on code.google.com by ma...@mapsite.in on 30 Oct 2012 at 9:58

GoogleCodeExporter commented 8 years ago
The output looks ok, but IE7 is rendering it as a plain text file. Does IE7 
display other PDFs correctly? It's possible the headers are being discarded 
because some content (even something as minor as a blank space) was sent to the 
browser. Make sure you're not sending any content to the browser in advance of 
rendering your document.

Original comment by eclecticgeek on 5 Nov 2012 at 3:09

GoogleCodeExporter commented 8 years ago

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