0

I am trying to open the print dialog wether or not the user has a printer installed, just so they can have access to the export as pdf function of the print dialog.

I am doing this in the main process:

webContents.print({silent: false, printBackground: true,   landscape: isLandscape}, (success, errorType) => {
            if (!success) console.log(errorType)
          })

But no error is ever received. Will I be able to do this?

LiviuIosim
  • 11
  • 1
  • 6
  • Does this answer your question? [Printing a PDF file with Electron JS](https://stackoverflow.com/questions/49650784/printing-a-pdf-file-with-electron-js) – Bagus Tesa Oct 20 '22 at 10:10

0 Answers0