I have to print HTML / CSS to PDF automaticaly in javascript.
Currently a user must click the print button, than the print dialog opens and the user can choose “print as PDF” and than the PDF is saved on disk.
My task now is to do this by javascript.
I tried jsPDF but the quality is bad, it is blurred.
The simplest way would be if I could select the “print to PDF” driver and press save by javascript but there is no access from javascript to the save button.
Does anyone know how I could solve this unfortunate situation – thanks for any hint?
1