-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Not working with IE #219
Comments
Duplicate of #16 |
Hi jthoenes, Thanks , |
Hi, unfortunately, pdfmake does not support IE as of now. Best regards |
@munikumar604 and @jthoenes, check my work around in #16 |
Hi wabbala,
above is my page. pdf is not created |
Does the example I linked to work with you? On 4 March 2015 at 14:20, munikumar604 notifications@github.com wrote:
|
Do we get a fix for it? |
As I've written in #230 - "Data URIs in IE can only be used for images. This is an IE limitation. Unfortunately I have no concept for a workaround" |
@bpampuch How about putting the data in LocalStorage, and asking the caller to host a blank template page on their site (which could be fixed name or a setting option) which will read and display that data? @jthoenes You closed this issue and marked it a duplicate of an IE9 issue ... but this is about IE11. Did something change recently, or has pdfmake never supported IE (I thought it did!). |
@Dev63 if we set the content type to application/pdf browser won't execute the code so we can't access localstorage |
The only workaround I know is an echo service (you send the file to the server and it sends it back) for IE, but this sucks IMO |
@bpampuch: We're using this library in the angular-ui-grid, thanks for the excellent code. We have a function that downloads csv files in IE, it has a complex set of detection logic and specific functionality for different browsers, but it does allow download of arbitrary browser created content. It'd be nice if pdfMake also offered a similar functionality, as for pdfMake we're currently just calling the The relevant code file is https://github.com/angular-ui/ng-grid/blob/master/src/features/exporter/js/exporter.js, the relevant method is downloadFile at or about line 769. To see it working you can view the tutorial for the export feature: http://ui-grid.info/docs/#/tutorial/206_exporting_data. The basic steps are to click the grid menu (icon top right of the grid), and select "export all data as csv". If it isn't possible to implement the download function, then perhaps you could answer a different question - can I get the rendered pdf from pdfMake and then execute the download myself? |
Getting this error in IE 10 with pdfmake http://ui-grid.info/docs/#/tutorial/206_exporting_data
|
a browser support table in the README would be nice. |
One possibility I am currently looking into as a work around is integrating Mozilla's PDF.js into our app and passing it a dataUri from PDFMake. This should allow it to work in IE. Link to Mozilla PDF.js here: https://mozilla.github.io/pdf.js/ |
Just saw that jsPDF is using downloadify for IE compatibility https://parall.ax/products/jspdf |
I ran into this issue and decided to go with using feature detection to find if data URIs are supported for opening PDFs and using the .download() function if they were not. I had a hard time finding a good feature detection script for this so I thought I'd post it here for anyone else who's looking for one. The best one I could find was proposed by KevinMartin in a Modernizr issue. |
Why would you make a library that doesn't work in IE? |
as stated before: a browser support table in the README would be nice... |
Hello good morning, I found this solution, it´s working for me.
|
There is apparently an IE specific API for downloading blobs. https://msdn.microsoft.com/en-us/library/hh779016%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 I just changed from: pdfMake.createPdf(doc).download("Report.pdf"); to if (window.navigator.msSaveBlob) {
pdfMake.createPdf(doc).getBlob(function (result) {
window.navigator.msSaveBlob(result, "Rapport.pdf");
});
}
else {
pdfMake.createPdf(doc).download("Report.pdf");
} |
Would instruct clients to use Firefox or Chrome
|
|
Hi Team,
I used pdfmake in IE it is not working properly.
The text was updated successfully, but these errors were encountered: