Adobe Reader could not open 'some.pdf' because it is either not a supported file
-
Hai,
I am Kavitha, php developer. I am using the following code for pdf file downloading in the site.
header(“Pragma: public”);
header(“Expires: 0”);
header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”);
header(“Cache-Control: public”);
header(“Content-Description: File Transfer”);
header(“Content-Type: $mtype”);
header(“Content-Disposition: attachment; filename=\”$asfname\””);
header(“Content-Transfer-Encoding: binary”);
header(“Content-Length: ” . $fsize);It’s downloads the file and saves. But on opening the file some error message is shown and the file is empty. Error message : “Adobe Reader could not open ‘some.pdf’ because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded).”
Anybody can help me in this regard is very helpful.
Kavitha.
- The topic ‘Adobe Reader could not open 'some.pdf' because it is either not a supported file’ is closed to new replies.