I am creating a site for our employees to view customer documents. All the documents are in pdf format. I've made it so they can't have access to the pdf toolbar but I need to make it so they can't print the page that the pdf opens in. I've put this in my head tag:
<style type="text/css" media="print">
body { visibility: hidden; display: none }
</style>
I can still right click on the embedded pdf image and print. Or I can ctrl+P and Firefox will always print the file the first time I do it but will print a blank page every time after that. I need to make sure the code works in both Firefox and IE.
<style type="text/css" media="print">
body { visibility: hidden; display: none }
</style>
I can still right click on the embedded pdf image and print. Or I can ctrl+P and Firefox will always print the file the first time I do it but will print a blank page every time after that. I need to make sure the code works in both Firefox and IE.