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

working fine before build using electron . , but not working after i build as exe file #18

Open
hammaduu opened this issue Nov 25, 2017 · 4 comments

Comments

@hammaduu
Copy link

hammaduu commented Nov 25, 2017

Its working exactly perfect before build but when i build app as installer .exe file for windows and install exe file on windows 8.1 , its not showing pdf window, i am using it through renderer process on click of anchor. I ran out of the day but it doesn't looking to be solved. I total confused how to solve it out. please any help?

here is my code

function pdfWindow() {
const { BrowserWindow } = require('electron').remote
const PDFWindow = require('electron-pdf-window')
const win = new BrowserWindow({ width: 800, height: 800 })
PDFWindow.addSupport(win)
win.loadURL('http://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf')
}

and i am calling this function on click of anchor tag

@shyarora
Copy link

Any Update?

@hammaduu
Copy link
Author

Not yet any solution found. that part was out of project scope and i have submitted that to my client as that was ;)
But to be honest solution is required

@shyarora
Copy link

Thanks, Hammad for the frequent reply. you saved my days to find a solution. Do let me know if you find something that resolves this issue

@kl-nevermore
Copy link

You need to copy the pdfjs folder to the same level as dist

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

3 participants