I run PDF file through localhost in php there is a option in browser of printing the PDF and I dont want it to be print. Here is my code:
header('Content-type: application/pdf');
readfile('The C# 4.0 complete reference.pdf');
die();
kindly help me
try this code
<?php
header("Content-type:application/pdf");
// It will be called downloaded.pdf
header("Content-Disposition:attachment;filename='downloaded.pdf'");
// The PDF source is in original.pdf
readfile("original.pdf");
?>