[Libreoffice-bugs] [Bug 126105] Exporting to docx changes page margins under certain conditions

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 26 09:21:14 UTC 2019


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

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #3 from Mike Kaganski <mikekaganski at hotmail.com> ---
This is not a bug, but a natural result of DOCX limitations. See bug 112118
comment 13 for some details; what's relevant here is that ECMA-376-1:2016 ch.
17.6.7 (for w:left; also relevant chapters for other borders) specifies that sz
(border width) for lines is measured in 1/8 of a point, and the minimum value
for sz is 2, which means that 2/8 = 1/4 of a pt = 0.25 pt is the minimum width
of the line in DOCX.

Now take into account that in LibreOffice (and in ODF format), the border width
is *added* to margins to offset the page body: try setting page borders to e.g.
9 pt, and look closely at the position of text when confirming the change. So,
in order to *keep the page body* as in the original, LibreOffice has to
decrease margins a little, otherwise page body would shrink.

So - no bug here; having different document models, some things simply have no
1:1 mapping between formats. Use native format to have best fidelity; nothing
can be improved in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190626/7058dab4/attachment-0001.html>


More information about the Libreoffice-bugs mailing list