https://bugs.documentfoundation.org/show_bug.cgi?id=33041

--- Comment #24 from Regina Henschel <[email protected]> ---
The settings are in element <style:page-layout-properties> in ODF. It allows
the attributes fo:margin and fo:padding. The namespace fo belongs to XSL,e.g
https://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#padding-top. The
specification of XSL refers to CSS and there you find the box model
https://www.w3.org/TR/REC-CSS2/box.html#box-padding-area.

The "margin"-area is always transparent. The "padding"-area has the same
background as the content-area. The border is between "margin"- and
"padding"-area. So margins can never have a background.

The solution for LibreOffice can be, to allow to set a padding without having a
border. border-width="0pt" is handled the same as border="none" in XSL, so
allowing "no" border is no problem in regard to specification. "padding" is the
setting "Spacing to contents" in the tab Borders in the page style dialog.
Currently padding is disabled, if no border is set. But having border width =
"0pt" is allowed in CSS and in turn in ODF.

In case LO would allow padding without border, the user could set margin to 0pt
and determine the needed distance between text and page edge be setting a
suitable padding. Because the padding has the same background as the content,
then the image would be drawn up to the page edge.

As workaround, you currently set margins to 0cm (and ignore printer warning),
and set the border to the smallest possible value and to a color, which makes
it rather invisible (background color of page, or similar to an image color,
for example). You get a document with a minimal border at the page edge and an
image covering the whole page. Most printers have a non-printable area and will
not print near the paper edge, regardless what the document page has there.
Only in PDF you will see this small border.

The same problem exists not only for page layout, but in all other cases, where
you can set border and padding.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to