Forum Moderators: coopster
header('Content-type: application/pdf-or-rtf');
readfile($file); For non html documents such as PDFs I would like to be able to show the title of the document in the top of the browser (the blue bar for most people). At the moment it shows application/pdf
I found that there are many possible header informations we can add to a document but none of them work
The ideal thing would be something like:
header("Title: ".$document_title);
but that does't work
Any idea?
Most browsers launch the appropriate viewer for filetypes it is configured to handle. FF1.5.1 on Win98SE shows the page title, just as you'd expect, along with the MIME type, like
MySummerVacation.txt (text/plain) when there is no viewer/Action specified for that type.
Of course, most browsers would open a PDF file in Acrobat ...
When I go View Source in Firefox I get the binary source of the swf.
But IE wraps the swf in an embed TAG in a dummy HTML document apparently generated on the fly.
IE also changes its menu when a PDF is loaded. quite inconsistant