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)