electron-pdf-window icon indicating copy to clipboard operation
electron-pdf-window copied to clipboard

Opening local pdf files on Windows downloads them, shows blank window.

Open gardiner opened this issue 6 years ago • 0 comments

We develop an electron app which displays a local single page application which on occasion contains links to (also local) pdf files. We have included electron-pdf-window and use it with PDFWindow.addSupport(mainWindow);. On a mac, when clicking a link to these pdf files (<a> element using target="_blank") a new window opens and the pdf file is displayed - perfect, just as intended. On windows, when clicking the link, a new blank window opens and the pdf file is offered for download. How can we achieve the same behavior as on the mac?

Thank you guys for all your effort, it is much appreciated.

gardiner avatar Mar 07 '18 13:03 gardiner