3

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.

ProgrammerPer
  • 1,125
  • 1
  • 11
  • 26
Ravindra Gupta
  • 1,256
  • 12
  • 42

0 Answers0