Page 1 of 1

Page Margin Boxes in landscape

Posted: Tue Aug 14, 2018 1:15 am
by mdslup
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?

Re: Page Margin Boxes in landscape

Posted: Tue Aug 14, 2018 12:56 pm
by Costin
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

Re: Page Margin Boxes in landscape

Posted: Wed Aug 15, 2018 12:46 am
by mdslup
You're right, I should have just tested this myself. Thanks.