https://bugs.documentfoundation.org/show_bug.cgi?id=166786

            Bug ID: 166786
           Summary: Cross-reference and numbering corruption when
                    exporting DOCX to PDF: LibreOffice reinterprets
                    structured clause references into an expanded and
                    incorrect hierarchical format, leading to inaccurate
                    rendering in both the UI and exported PDF
           Product: LibreOffice
           Version: 24.2.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When a Microsoft Word .docx document with properly structured numbering and
cross-references is opened and then exported to PDF using LibreOffice, the
cross-reference text and underlying list numbering structure are incorrectly
reinterpreted and expanded.

For example, a clause that reads:

“Additional Fees has the meaning given in clause 3(a)(i) of this variation
agreement.”

is displayed and exported by LibreOffice as:

“Additional Fees has the meaning given in clause 3.1.1.1(a)(i) of this
variation agreement.”

This issue does not occur in Microsoft Word, which preserves the reference as
written. LibreOffice appears to alter the internal representation of the list
structure, causing downstream cross-references to adopt this misinterpreted
format.

Steps to Reproduce:
1.Open the attached file claause.docx in LibreOffice.
  a. Observe correct cross-reference: “Additional Fees has the meaning given in
 clause 3(a)(i)”

2.Export to PDF using File → Export As → Export as PDF

3.Open resulting PDF (e.g., claause.pdf).
  a.Observe incorrect rendering: “ Additional Fees has the meaning given in
clause 3.1.1.1(a)(i)”

4.Return to LibreOffice Writer UI — the same text is now altered in the
document itself

Actual Results:
After a document exported from LibreOffice, both LibreOffice Writer UI and
exported PDF file show:

"Additional Fees has the meaning given in clause 3.1.1.1(a)(i)"

Expected Results:
LibreOffice should preserve both the logical and visual format of
cross-references and list numbering as seen in the original DOCX, particularly
when:

1.The source document’s numbering is intentionally shallow (e.g., 3(a)(i)).

2.The cross-reference string refers to that structure exactly.

In both the editing interface and exported PDF, the string should remain:
“clause 3(a)(i)”


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.4.1 (X86_64) / LibreOffice Community
Build ID: 09303ce8b49f86f106fccd32b1324662053027cc
CPU threads: 6; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to