Customize built-in PDF viewer
Is it possible to remove the printer button and download button in built-in PDF viewer by userContent.css?
Is it possible to remove the printer button and download button in built-in PDF viewer by userContent.css?
ఎంపిక చేసిన పరిష్కారం
Do you already have a userContent.css file set up?
/*** Hide buttons in the PDF Viewer Toolbar ***/ /* Main toolbar */ #toolbarViewer #print, #toolbarViewer #download { display: none !important; } /* Secondary toolbar (drop-down) */ #secondaryToolbar #secondaryPrint, #secondaryToolbar #secondaryDownload { display: none !important; }ఈ సందర్భంలో ఈ సమాధానం చదవండి 👍 1
ప్రత్యుత్తరాలన్నీ (3)
I found their button-id "secondaryPrint" and "secondaryDownload", but I don't know how to remove them in userContent.css.
ఎంపిక చేసిన పరిష్కారం
Do you already have a userContent.css file set up?
/*** Hide buttons in the PDF Viewer Toolbar ***/ /* Main toolbar */ #toolbarViewer #print, #toolbarViewer #download { display: none !important; } /* Secondary toolbar (drop-down) */ #secondaryToolbar #secondaryPrint, #secondaryToolbar #secondaryDownload { display: none !important; }
@jscher2000 Thank you so much!! It totally works!!