-
Notifications
You must be signed in to change notification settings - Fork 666
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
Set proper MIME type for PPTX presentation #471
Comments
I think what I want to accomplish is related to #277. In order to be able to use the proper Electron methods PptxGenJs would have to give me access to |
Hi @StefanBrand Same here. I tried adding a MIME type to the The JSZip docs says MIME-type is only for blob files, so it may be that we use nodebuffer for I'd encourage you to play around with the code and see what you can find. |
Hi @StefanBrand This is now fixed in the current branch and in |
When I
save()
a presentation and manually remove the ".pptx" at the end of the file name, I get a file that doesn't automatically open with Powerpoint. This is confusing to my users because they like to rename their output presentations (and Powerpoint adds the file extension after pressing the save button).I suspect that this depends on the MIME type -- if it is not set properly, a file will have no extension unless manually appended. According to this SO answer the MIME type of PPTX presentations is
Can the library support saving with the correct MIME type? A quick try with setting
mimeType
inzip.generateAsync(...)
did not work for me.PS.: I'm using Electron to build an app and I'm not sure about the implications. It's both a browser and Node.js in some way... All I could find out is that it executes the statement on line 1823.
The text was updated successfully, but these errors were encountered: