hi experts,
When i print html file to pdf which is created using flash ,the default file name appearing in filename box is 'flash.pdf' which is common for all fies.but if we print an excel or word file,the filename is taken as the name of excel file.How to make it possible for html file ...pls help me..

Gokhul VarmanRank #1,506 · 1.1K reputationPosted Aug 9, 2017, 5:08 AM EDT
Mukil VendhanRank #2,971 · 486 reputationPosted Aug 20, 2017, 4:52 AM EDT
Deepak RawatRank #646 · 3.7K reputationPosted May 4, 2023, 12:30 PM EDT
To change the default file name when printing an HTML file to PDF, you can add a "filename" parameter to the print command in the HTML code. For example, you can add the following code to the head section of your HTML file:
function printPDF() { window.print('','myPDF','filename:myHTMLfile.pdf'); }When the user clicks the button, the print dialog will appear with the default file name set to "myHTMLfile.pdf".