-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
SaveAs does not work with Blobs in 2.0 #519
Comments
True, worth a shot. But the readme also mentions using
|
Perhaps pdfmake should update how it calls FileSaver? |
Using file-saver in an angular 7 app but it isn't working when using saveAs. Amchart's export too doesn't work. saveAs doesn't throw any error and there is no file being downloaded too. But it works when using 1.3.8. const fileSaver: any = require('file-saver');
canvas.toBlob((blob: Blob) => {
.saveAs(blob, filename);
}, filetype); |
@devrathnd depending on your tsconfig, it should be It is a default export |
I am facing the same issue , despite the fact i am using import * as FileSaver from 'file-saver' , i am saving blob that is a zip of all images. FileSaver.saveAs(content, 'AllGraphs.zip'); |
This ticket should be closed since bpampuch/pdfmake#1599 has been closed. |
@devrathnd : Were you able to solve this issue? For me its working fine in development but in production its not working. And there are no errors. Using Angular 7 |
This saved my day. |
The following code does not produce any file download results in chrome: In addition, no errors are given:
See:
bpampuch/pdfmake#1599
The text was updated successfully, but these errors were encountered: