Created attachment 185076 [details]
doc file that causes the problem (anonymized so it can be made public)
The attached doc file contains a frame in the header that is too wide for the position specified. So the frame goes beyond the right edge of the page (when opened in MS Word one can see this).
When I convert the doc using libreoffice, the width of the frame is maintained but the position is changed (shifted left) so the frame's right edge fits just at the right edge of the page.
I assume this behavior is not really "a bug" but the result of forcing the frame to fit within the page. If libreoffice must indeed have all frames within the page, can the importer be configured to force frames inside the page by modifying the width/height of the frame rather than its position?
In this document, the result of modifying the width rather than the position would be much more desirable (since the part of the frame that spills outside of the page does not have any visible information). I can imagine that changing the width (height) could produce better results not only in this case but in many others.
So can the importer be configured to preserve position rather than size? If not, this would be a feature request to enable manual configuration of whether to preserve position or size when forcing frames to fit inside a page . Of course an automatic heuristic that chooses between changing position and trimming size (or a combination of both) based on the fact that trimming white space that falls outside of the page is acceptable might be even better than a manual configuration switch.
Thank you for your contributions to the open source community!
By the way I received the original document with the problem described from a customer. I have anonymized it by using a binary editor to replace actual words with xxxxx so it can be placed in the public domain without issue.
The issue may be present in versions of libreoffice earlier than the one reported, but this is the one I have access to. (I run libreoffice in linux debian bookworm installed from the package manager)
Created attachment 186243 [details]
PDF exported from office.com
Already in 3.5. Did some searches, but could not find a duplicate.
Arch Linux 64-bit, X11
Version: 188.8.131.52.alpha0+ (X86_64) / LibreOffice Community
Build ID: a9ba09b66feec19206b0b7c6b70c6d905a6dbfe2
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Built on 27 March 2023
(In reply to Jorge Moraleda from comment #0)
> So can the importer be configured to preserve position rather than size?
This could be done by adding a compatibility flag to handle MS imports differently than native LO frames, similar to TAB_OVER_MARGIN.
But probably much better is to just import the way it does and let the human fix the poor design choices.
*** Bug 90353 has been marked as a duplicate of this bug. ***