PDF Extension FileName Example Not Working
PDF Extension FileName Example Not Working
MarcusJ
Posts: 2Questions: 0Answers: 0
https://datatables.net/extensions/buttons/examples/flash/filename.html
This example is not working for the PDF button at the link above. I have the same issue with v1.10 in my current project. It doesn't add an extension and doesn't use the filename specified in the options.
This discussion has been closed.
Replies
Hi,
The Flash generated PDF file name issue is fixed in this commit, but hasn't yet been released. You can use the nightly version of Buttons which includes that fix if you want.
The extension is unfortunately unfixable - that's a limitation in Flash.
Allan
Are you saying there is no way for the Flash generated PDF file to save with a .pdf extension? It works in TableTools but I can't seem to get it to work with the current Buttons code.
It does create it with a PDF extension does it not? The limitation is that you can't change it (I think in some cases you can't actually even see it - depending on your OS and Flash version) - but if you check the file on the file system, the extension should be there.
Allan