开发者

could not read pdf file [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

adobe reader could not open a.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) show this error when open downloaded pdf file in php . i used the following code:

header('Content-disposition:attachment;filename=customer_acc_info_form.pdf');
header('Content-type:application/pdf');
readfile('bo_account/customer_acc_info_form.pdf');

<li><a href="customer_acc_info_form.php">Customer Account Information Form</a></li>


You should remove the <li>...</li> from the PHP file. It's going to be appended at the end of the PDF file (after the readfile call) and cause it to be invalid. Make sure that there is nothing else sent after the file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜