How to set 'number of copies' to print in electronjs?

98 Views Asked by At

I tried using this code, but it didn't work.

mainWindow.webContents.print({ silent: true, printBackground: false, deviceName: '',collate: true, copies: 5 } || {}, (success) => {

    })

I want to set how many copies to print before user click the print button in electronjs app.

0

There are 0 best solutions below