Description: The text position of an imported .docx document do not correspond to the text position displayed by Microsoft Word. The same is true for the image in the footer. Steps to Reproduce: 1. Open the attached .docx file Actual Results: The text position of an imported .docx document do not correspond to the text position displayed by Microsoft Word. Expected Results: LibreOffice Writer should put imported text and images in the same position as Microsoft Word puts them Reproducible: Always User Profile Reset: No Additional Info: LIBREOFFICE VERSION Version: 7.0.4.2 Build ID: dcf040e67528d9187c66b2379df5ea4407429775 CPU threads: 12; OS: Linux 5.8; UI render: default; VCL: kf5 Locale: en-US (en_US.UTF-8); UI: en-US Calc: CL MY SYSTEM Operating System: Kubuntu 20.10 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.14.2 Kernel Version: 5.8.0-33-generic OS Type: 64-bit Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 15,5 GiB of RAM Graphics Processor: GeForce GTX 1060/PCIe/SSE2
Created attachment 168677 [details] A screenshot showing the bug
Created attachment 168678 [details] The offending .docx file
COnfirmed in Version: 7.2.0.0.alpha0+ Build ID: 9b02ff6a6a95b73c103f998716d1c9df61b41ff5 CPU threads: 12; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: CL
I confirm it with Version: 7.0.4.2 (x64) Build ID: dcf040e67528d9187c66b2379df5ea4407429775 CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL in comparison with MS Word 2016. Problem is, that vertical position of image in footer changes. If you bring it to the original position, text also looks O.K.
Created attachment 172195 [details] Minimized example file Copying the offending image from the footer to the body confirms that this problem is specific to the footer: does not happen in the document body.
Created attachment 172196 [details] The minimized example in Word and Writer side by side
Created attachment 172197 [details] Manually fixed version to get the same look I found that the problem may be in the point to which the position is calculated. In Word the image has a vertical position of -0.29 cm below paragraph. This is imported as -0.29 cm "From top" to Margin, which is not the same but choosing another option such as Paragraph text area, Entire page or Page text area does not help. What helps is subtracting the amount of bottom margin (1.25 cm in this case) from the -0.29 cm position to get -1.54 cm. That gives the ~same position as in Word, and this setting even survives saving by Writer to docx. Which looks the ~same even in Word. This may not be the correct way to solve this problem, but a hint towards the direction.
repro 7.6
Adjusting oldest version, since it was never OK.
Dear Julien Adetele, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug