Page Margin Boxes in landscape

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Page Margin Boxes in landscape

Post 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?
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Page Margin Boxes in landscape

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Re: Page Margin Boxes in landscape

Post by mdslup »

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