Bug 162808 - FILEOPEN DOCX Hanging indent not imported
Summary: FILEOPEN DOCX Hanging indent not imported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Paragraph
  Show dependency treegraph
 
Reported: 2024-09-05 12:35 UTC by Caleb Meredith
Modified: 2024-12-11 17:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
input.docx (108.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-09-05 12:36 UTC, Caleb Meredith
Details
actual.pdf (175.13 KB, application/pdf)
2024-09-05 12:36 UTC, Caleb Meredith
Details
expected.pdf (135.25 KB, application/pdf)
2024-09-05 12:37 UTC, Caleb Meredith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Meredith 2024-09-05 12:35:36 UTC
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
Comment 1 Caleb Meredith 2024-09-05 12:36:29 UTC
Created attachment 196249 [details]
input.docx
Comment 2 Caleb Meredith 2024-09-05 12:36:43 UTC
Created attachment 196250 [details]
actual.pdf
Comment 3 Caleb Meredith 2024-09-05 12:37:37 UTC
Created attachment 196252 [details]
expected.pdf
Comment 4 Dieter 2024-10-09 15:34:48 UTC
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)
Comment 5 Buovjaga 2024-12-11 17:51:49 UTC
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