I have an angular component which is used for UI rendering and printing. I am using window.print command for the same. I need initial 2 pages in landscape mode and after page break,1 page in portrait mode.
I have tried to set orientation as landscape/portrait in corresponding div and also text-rotation solution. But nothing worked. Any other way to achieve the same? Thanks in advance.
Have you tried CSS property
page? This property is used to specify a particular type of named page.As the CSS below, you can add the
landscape-pageor theportrait-pageclass to the element you mean to display in landscape or portrait mode.Unfortunately, this property works well in Google Chrome but not Firefox and Safari...