Thread: Displaying PDFs
View Single Post
Old 08-02-2004, 12:58 AM  
rich06
Registered User
 
rich06's Avatar
 
Industry Role:
Join Date: May 2004
Posts: 20
IE is a bit broken with this stuff sometimes - it doesn't always believe/accept the mime type your script sends and thinks it can work it out itself hence the garbage...

what http headers are you sending? here's some that I've used in the past to send generated PDF content to a browser ...

header('Content-type: application/pdf');
header('Content-Dishahahahahahahahahaha inline; filename=my.pdf');
header('Content-Length: '.strlen($pdf_content));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');

hth
rich
__________________
Email: [email protected]
rich06 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote