Bug 162537 - A specific docx file is unreadable
Summary: A specific docx file is unreadable
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2024-08-21 11:17 UTC by boris_petrov
Modified: 2024-08-30 04:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Broken template (242.89 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-08-21 11:17 UTC, boris_petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boris_petrov 2024-08-21 11:17:51 UTC
Created attachment 195926 [details]
Broken template

Please check the attached document. It's "broken" in the sense that some things are missing - for example the "a", "b" and "c" in one of the rows. That's a stripped-down version of a document I have which is missing most of the information in it. But that should be enough for you to debug it.

Opening it in MS Office shows it correctly.

The issue seems to disappear if anything in the template is changed - for example if the image is removed, the bold `.` is removed, the rows in the table are not 11 but 10 or less, etc.
Comment 1 4layq596ovwv 2024-08-21 11:24:32 UTC
I have tested this as well on my machine on  LibreOffice 24.2.5.2 bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59 and can confirm that the output is not correct.

The issue is also linked to this github issue : https://github.com/open-xml-templating/docxtemplater/issues/758
Comment 2 Regina Henschel 2024-08-21 13:13:39 UTC
Second table is wrong. Position of first table or image is wrong. Tested with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e9899b5c29bc9390d9b47b40faab6d27797ac4d3
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded