diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-05-13 22:39:33 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-05-15 02:19:04 +0300 |
commit | 14d1ff0d34fcf1f2a8fba30c8f72f2bd10a1b783 (patch) | |
tree | 2e7ffdfa86fbae14437b12a08f6b9282bcb3caff /css | |
parent | bf29e33cfdf31f0742e5aafe9b382d6cd2aeacb8 (diff) |
Prevent printing from the browser when download is hidden
Even if printing was not possible using the PDFViewer printing services
it was still possible to print the PDF document by printing the web page
from the browser. As that can not be really prevented the best that can
be done is hide all the content in the printed media using CSS.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'css')
-rw-r--r-- | css/viewer.css | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/css/viewer.css b/css/viewer.css index eca5f53..297a8a7 100644 --- a/css/viewer.css +++ b/css/viewer.css @@ -21,3 +21,11 @@ html .doorHangerRight:after { html .doorHangerRight:before { right: 53px!important; } + +/* Prevent printing from the browser when the download of a share is hidden. */ +@media print { + .pdfViewer.disabledTextSelection { + visibility: hidden; + display: none; + } +} |