Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
All I want to do is place a button on a screen which, when clicked, opens a PDF. The file is the user documentation.
Showing a PDF file is possible only if a PDF plugin is installed in the browser, otherwise, it will always be served as a download file.
$file = '/path/to/filename.pdf';$filename = 'filename.pdf';header('Content-type: application/pdf');header('Content-Disposition: inline; filename="' . $filename . '"');header('Content-Transfer-Encoding: binary');header('Content-Length: ' . filesize($file));header('Accept-Ranges: bytes');@readfile($file);