How to keep the filename of exported pdf when opened in new tab instead of direct download?
How to keep the filename of exported pdf when opened in new tab instead of direct download?
Wamakshi
Posts: 11Questions: 4Answers: 1
When I keep the below option to open the exported pdf in new tab, the filename property does not seem to affect the name.
{
extend: 'pdfHtml5',
download: 'open',
filename: 'My filename'
}
This pdf will get open in new tab, but the file name would be something like : 2c0727e6-a1e0-41fa-978a-2ce9ec85b73a
Can we keep the filename also in a new tab?
This discussion has been closed.
Answers
The docs don't mention a "filename" option.
https://datatables.net/extensions/buttons/examples/html5/filename
Hi @tangerine
It is mentioned here https://datatables.net/extensions/buttons/examples/flash/filename.html but I see that it is for pdfFlash. 'title' property also does not work in this case.