Answers for "view pdf file online without downloading using codeigniter"

0

view pdf file online without downloading using codeigniter

header("Content-Length: " . filesize ('theme/assets/pdf/ci.pdf' ) ); 
header("Content-type: application/pdf"); 
header("Content-disposition: inline;     
filename=".basename('theme/assets/pdf/ci.pdf'));
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
$filepath = readfile('theme/assets/pdf/ci.pdf');
Posted by: Guest on August-10-2020

Code answers related to "view pdf file online without downloading using codeigniter"

Browse Popular Code Answers by Language