Re: when is a PDF not a PDF?
| From: | Jeff Harris | Date: | Sat, 06 Mar 2004 21:28:30 +0000 |
| Subject: | Re: when is a PDF not a PDF? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179659@lists.php.net to get a copy of this message | ||
On Mar 6, 2004, "Rick Fleischer" claimed that:
|The simple example from http://www.php.net/pdf (hard-wired to
paper.pdf)
|just displayed the pdf data as a dump. I can ftp the file and it's OK. My
|hard-wired version is shown below.
|
|<?php
|$len = filesize("paper.pdf");
|header("Content-type: application/pdf");
|header("Content-Length: $len");
|header("Content-Disposition: inline; filename=paper.pdf");
|readfile("paper.pdf");
|?>
|
|// Thanks,
|// Rick
IF you're using IE, this might help you:
http://marc.theaimsgroup.com/?l=php-general&m=106001984503131&w=2
HTH
Jeff
--
Registered Linux user #304026. | 52FC 20BD 025A 8C13 5FC6
gpg key: B0890FED | 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.
[http://www.faqs.org/rfcs/rfc1855.html]
========================================================================
A: Because it messes up the conversation.
Q: Why is top posting bad?
A: Top posting.
Q: What's the most annoying thing on mailing lists?