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?

WamakshiWamakshi 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?

Answers

This discussion has been closed.