Good evening, I would like to create a feature for my users that allows them to read a pdf file without downloading or printing it. They will only be able to read the pdf file. I tried pdf.js which did not work, I also tried to convert my pdf to html via a script, I also tried this php code but the download and print button appears:
<?php
// The location of the PDF file
// on the server
$filename = "/path/to/the/file.pdf";
// Header content type
header("Content-type: application/pdf");
header("Content-Length: " . filesize($filename));
// Send the file to the browser.
readfile($filename);
?>
Do you have any solutions or technologies to suggest to me, I use PHP, HTML and JS.