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.