Is it possible to have a preview page before printing on node webkit ?
var printItem = document.getElementsByClassName("print");
printItem[0].onclick = function () {
win.print({
printer: '',
headerFooterEnabled: false
})
};
I can only launch a silent print!
Or is it possible to print a PDF file and open it ?
Thanks
You have to add "Save as Pdf" in the printer option :
win.print({
printer: 'Save as Pdf',
headerFooterEnabled: false
})
As simple as that :)