Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Learn More

Customize built-in PDF viewer

  • 3 svar
  • 1 har detta problem
  • 266 visningar
  • Senaste svar av wyt94yx

more options

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?

Vald lösning

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;
}
Läs svaret i sitt sammanhang 👍 1

Alla svar (3)

more options

I found their button-id "secondaryPrint" and "secondaryDownload", but I don't know how to remove them in userContent.css.

more options

Vald lösning

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;
}
more options

@jscher2000 Thank you so much!! It totally works!!

Ändrad av wyt94yx