-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't loadURL from blob #11
Comments
+1 |
What i did to get it working for me was to convert the blob to a base64 dataurl and then write the dataurl to a pdf file using node filesystem api and then reading the url to the saved pdf `fs.writeFile('the name of the pdf you want to save',new Buffer(data, "base64"), (err) => {
});` |
I'm having the same issue. Note that the same code on the latest Chrome works fine.
|
Still an issue a year later... Electronjs doesn't support blobs yet in their native pdf viewer either. Pretty much the main way businesses open PDFs isn't support by either of these repos. |
Try this: https://github.com/burtonator/polar-bookshelf Polar loads the PDF via HTTP into Electron to bypass this problem |
@burtonator I gave this a look and it looks promising, but I can't find any documentation on how to set it up. |
I'm doing another release this morning. It's basically just download and install. The README.md in the home directory explains how to install - near the bottom. Create an issue in that repo if you are confused about anything. |
@burtonator I ended up making an Issue on there. If this is something I have to install in order to use, that is not something our company can use. This needs to be something implemented directly into my project. EDIT: Turned out to be an app and not an API. Not an alternative in this instance. |
Hi,
i'm trying to load a pdf file from a blob without success.
With a real url it's work, with blob url it render a blank page without error.
My code:
`const filePath = path.join(dirPath, files[0]);
Can anyone help me please?
The text was updated successfully, but these errors were encountered: