Are you sending the correct MIME type in your response?
Assuming you are and you're getting the same result, then Im assuming your
browser doesn't know what to do with PDF files (either it doesn't have any
PDF plugins or is configured incorrectly for PDF files).