#28172

For security reasons, a silent background print of online documents is not allowed by web browsers and PDF viewers.

You may only force PDF viewer to open the print dialog. See
html-pdf-faq-f1/automatically-open-print-dialog-t158.html

The topic also explains how to start a print job from command line.