Description: When converting the attached .docx file to .pdf via the command line or by opening the attached .docx file in LibreOffice writer the headers are placed in the left margin. Whereas opening the .docx file in Microsoft Word or Google Docs aligns headers correctly. The vertical spacing in LibreOffice on the first page also looks to be different. Steps to Reproduce: 1. Open the attached .docx file in Writer or... 1. Run the CLI command `libreoffice --headless --convert-to pdf --outdir . input.docx`. Actual Results: See the attached actual.pdf file. The headers are not properly aligned according to the input document. Expected Results: See the attached expected.pdf file where the headers are properly aligned. Reproducible: Always User Profile Reset: Yes Additional Info: Version: 24.8.0.3 (AARCH64) / LibreOffice Community Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583 CPU threads: 10; OS: macOS 14.2.1; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 196249 [details] input.docx
Created attachment 196250 [details] actual.pdf
Created attachment 196252 [details] expected.pdf
Thank you for reporting the bug. I don't think it is related to PDF export, because, if you open it in LO it also shows the different indent. I couldn't test with MS word, but what I can see is, that first heading has a paragraph direct formatting "First indent -0,76 cm" (same for heading on page 2)
Confirmed already in oldest of linux-43all repo. Relevant bit inside word/document.xml: <w:ind w:left="0" w:right="0" w:hanging="432"/> https://support.microsoft.com/en-us/office/create-a-hanging-indent-7bdfb86a-c714-41a8-ac7a-3782a91ccad5 Arch Linux 64-bit Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: cc65bec38ca26265ce8ecfd02110c26bcc62b79b CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded Built on 11 December 2024