Auto-Print

Exported PDF files can be set to open the "Print" dialog immediately after opening.

To enable automatic printing, set autoPrint to true.

Automatic printing is not supported by all PDF viewers. For example the built-in Chrome viewer would not execute the print script, but Firefox will. Adobe Reader also displays the print dialog upon opening the file.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?