PDF Extension FileName Example Not Working

PDF Extension FileName Example Not Working

MarcusJMarcusJ Posts: 2Questions: 0Answers: 0
edited March 2016 in Free community support

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.

Replies

  • allanallan Posts: 63,075Questions: 1Answers: 10,385 Site admin

    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

  • MarcusJMarcusJ Posts: 2Questions: 0Answers: 0

    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.

  • allanallan Posts: 63,075Questions: 1Answers: 10,385 Site admin

    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

This discussion has been closed.