Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gardiner opened this issue Mar 7, 2018 · 0 comments
Open

Comments

@gardiner
Copy link

gardiner commented Mar 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant