$file = 'headerPdfFile.pdf'; $filename = 'IamPdfFile.pdf'; // Header content type header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' . $filename . '"'); // Read the file @readfile($file);