Page Margin Boxes in landscape

mdslup
Posts: 65

Page Margin Boxes in landscape

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: 402

Re: Page Margin Boxes in landscape

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: 65

Re: Page Margin Boxes in landscape

Wed Aug 15, 2018 12:46 am

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 0 guests