How to disable the download option from electron-pdf-window

703 Views Asked by At

I'm building a django electronjs app with PDF viewer using the following js script and it's working fine, but my concern is if I can disable or remove the download option from the PDF viewer. If yes, then how can I do that?

const { app } = require('electron')
const PDFWindow = require('electron-pdf-window')

app.on('ready', () => {
  const win = new PDFWindow({
    width: 800,
    height: 600
  })

  win.loadURL('http://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf')
})

If this can be done, I will be grateful.

0

There are 0 best solutions below