Can we give a PRINT command that will print the PDF without actually opening the PDF on client's machine.. ? I want to limit the # of prints for the PDF page by a user.. Can you suggest anything ?
No. The PDF needs to be opened on the clients machine so that the printer can access it. Plus, PHP is on the server and has no access at all to the browser and its functions. The only way to print documents via a script is using JavaScript (if enabled). What you could do is limiting the amount of downloads to this document. But you cannot prevent people from printing it as much as they want once they have it. Even if, they could still make photocopies and it'd basically be the same.