diff options
author | Attila Szűcs <szucs.attila3@nisz.hu> | 2021-06-25 10:37:47 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-07-02 15:08:24 +0200 |
commit | d656191ec308d4280b93c7169372e543a255d108 (patch) | |
tree | b6d7ff5b6b060ba1e79caa71e42476af562ba649 /bean | |
parent | 226f7e2ab96fce33a2705ad91ef0d539a6bad7b3 (diff) |
tdf#119952 DOCX import: fix negative page margins
DOCX body text can overlap with header/footer, if top/bottom
page margin is negative. To support this, convert header/footer
text content to textbox anchored to header/footer, if needed.
Note: possible improvements:
1) Skip this hack, if the header is small enough to not overlap with
the body, calculate only the height of the header at the import time.
2) This hack does not fix the case when the top of the header
is under the top of the body. (A problem in DOC import, too.)
This could be achieved by repositioning the dummy header to the top,
and lower the textbox by the same amount. (This would still not
resolve the extreme situation, when the body start from 0 mm
(in LibreOffice, header must be at least 1 mm).
3) Import of VertOrientation::BOTTOM property seems to be bad,
or at least the footer loses this property after a DOCX round-trip,
resulting bad footer position.
4) after a round-trip, the 1 mm height of the dummy header
increases to 1 line height. Also the "Autofit height" and
"Use dynamic spacing" settings are changed, likely related
to their missing DOCX export.
Co-authored-by: Tibor Nagy (NISZ)
Change-Id: I8319c93c6c5a980878ee9956c8ab2953da60409e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117842
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'bean')
0 files changed, 0 insertions, 0 deletions