سلام
از دستور زیر برای ارسال اطلاعات در قالب pdf به سیستم کاربر استفاده کرده ام:
<?php
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="wll_farsi.pdf"');
readfile('wll_farsi.pdf');
?>
اما با پیغام خطای
adobe reader could not open wll_farsi[1].pdf beacause it is either not a supported file type or beacause the file has been damage (for example it was sent as an email attachment and wasnt correctly decode)
آیا باید برای قسمت content-disposition مقدار دیگری در نظر گرفت(inline هم متن را به درستی نشان نمی دهد)
با تشکر