I need to print two html pages in a web application. The first page should be printed in A5 size, while the second page should be printed in A4 size. I attempted to set the A5 print settings using:
@media print{
@page {
size: a5 landscape;
margin: 0;
}
}
and the A4 print settings in the other file with:
@media print {
@page {
size: a4;
margin: 0;
}
}
The A4 page prints correctly, but when I try to print the A5 page, the paper size does not change (although landscape mode is set).