Page Margin Boxes in landscape

mdslup
Posts: 126
Joined: Tue Mar 06, 2018 1:34 am

Page Margin Boxes in landscape

Post by mdslup » Tue Aug 14, 2018 1:15 am

Using CSS/HTML5 PDF transform.

This site describes Page Margin Boxes: https://www.oxygenxml.com/doc/versions/ ... aid-title5

When I set the @page to be in landscape mode, do the boxes shift appropriately? In other words, when in landscape mode, is "top-left-corner" now equivalent to top right corner?

Costin
Posts: 635
Joined: Mon Dec 05, 2011 6:04 pm

Re: Page Margin Boxes in landscape

Post by Costin » Tue Aug 14, 2018 12:56 pm

No, changing the aspect (portrait / landscape) is not supposed rotate the page.
It should just change the layout the content on a page would be displayed: horizontally or vertically, so the page-margin boxes should remain unchanged.

You can easily test this yourself through a simple @page rule in your cutom CSS:

Code: Select all

@page {
@top-left-corner {
content:"";
background-color: red;
}
size: A4 portrait;
}
Then you change the line "size: A4 portrait;" with "size: A4 landscape;"

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

mdslup
Posts: 126
Joined: Tue Mar 06, 2018 1:34 am

Re: Page Margin Boxes in landscape

Post by mdslup » Wed Aug 15, 2018 12:46 am

You're right, I should have just tested this myself. Thanks.

Post Reply