Greetings! Users have the option to choose between printing reports in landscape or portrait format.
I am interested in finding out if it is feasible to incorporate the following code snippet into the header of a web document using an AngularJS directive. By doing so, it will dynamically adjust the print size based on the user's selection.
<style>@media print{@page {size: landscape}}</style>