Printing HTML and setting documentTitle,documentTitle is not worked.
function onPrint() { printJS({ printable: 'printContent', type: 'html', targetStyles: ['*'], maxWidth: 1280, documentTitle: 'document', }); At printing,the documentTitle is my website title,is not options.
In Firefox (version 130.0) setting a value for documentTitle does fully work as expected.
It is shown in the header in the print preview and selecting "Save as PDF" in the print preview the value set for documentTitle is used for the filename suggestion.
However, Microsoft Edge (version 128.0.2739.67) and Google Chrome (version 128.0.6613.138) the value is only shown in the header of the print preview (if the option to include headers and footers is selected) but it is not used for default filename suggestion when selecting "Save as PDF".