I am trying to print a pdf blob using printJS without dialog to the default printer using Angular. It works well on Edge and Chrome, however I can't get Firefox to work.
The code I'm using:
const blob = new Blob([value], {type: 'application/pdf'});
const url = window.URL.createObjectURL(blob);
printJS({printable: url, type: 'pdf'});
I had it working by setting print.always_print_silent = TRUE, print.more-settings.open = TRUE and print.print_page_delay = 200.
After reinstalling Firefox and trying the same settings, the delay value resets to 50 after printing each time.
What could be the cause of that?
I found out that you first need to print the same thing without using silent-printing to save its' options. Afterwards you can set print.always_print_silent = TRUE in about:config and it works.