We have a document with two pages.
The one page is portrait and the other is landscape.
When we print the document in Adobe the landscape page is printed as portrait.
When checking the "Choose paper source by PDF page size" checkbox manually the document prints correctly.
Is there a way to setup the landscape page correctly to get Adobe or any other printing software to print the landscape page correctly?
Please see example code below:
The one page is portrait and the other is landscape.
When we print the document in Adobe the landscape page is printed as portrait.
When checking the "Choose paper source by PDF page size" checkbox manually the document prints correctly.
Is there a way to setup the landscape page correctly to get Adobe or any other printing software to print the landscape page correctly?
Please see example code below:
<style type="text/css">
@page {
margin: 15px;
}
@page portrait {
size: A4 portrait;
}
@page landscape {
size: A4 landscape;
}
.portrait {
page: portrait;
}
.landscape {
page: landscape;
}
</style>
<div class="portrait">
<img src="/Images/soren-astrup-jorgensen-333989.jpg" style="max-width:100%" />
</div>
<div class="landscape" style="page-break-before:always">
<img src="/Images/sebastian-unrau-31677.jpg" style="max-width:100%" />
</div>