<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - DOCX Export Document with a picture and page break doesn't open in MS Word when saved as DOCX"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125657">125657</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>DOCX Export Document with a picture and page break doesn't open in MS Word when saved as DOCX
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.3.0.0.alpha1+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>libreoffice@nisz.hu
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=151872" name="attach_151872" title="The original file created with Microsoft Word.">attachment 151872</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=151872&action=edit" title="The original file created with Microsoft Word.">[details]</a></span>
The original file created with Microsoft Word.
This is a simple document with a picture and a page break. When the document is
saved as DOCX with LibreOffice 6.4 master (Version: 6.4.0.0.alpha0+ (x64),
Build ID: 02bee5f5d846f40f244c5acab044177576a6d869, Time: 2019-06-02_21:57:08)
the exported document doesn't open with Microsoft Word and the following error
message is shown:
The file Picture-pagebreak-export-issue-lo64.docx cannot be opened because
there are problems with the contents.
The same DOCX file opens without any problems when exported with LibreOffice
6.2.4 (Build ID: 2412653d852ce75f65fbfa83fb7e7b669a126d64).
The issue is caused by this part in the word/document.xml file:
<a:srcRect l="-350.08752188047" t="-622.153094100656" r="-350.08752188047"
b="-622.153094100656"/>
If we change the values to integers the document opens in Microsoft Word
without any issue:
<a:srcRect l="-350" t="-622" r="-350" b="-622"/>
Steps to reproduce:
1. Open the attached Picture-pagebreak-export-issue.docx file with
LibreOffice Writer.
2. Save the file as DOCX.
3. Try to open the resulted file with Microsoft Word.
Actual results:
The file doesn't open in Microsoft Word and the following error message is
shown:
The file Picture-pagebreak-export-issue.docx cannot be opened because there are
problems with the contents.
Expected results:
The file should open without any problems.
LibreOffice details:
Version: 6.4.0.0.alpha0+ (x64)
Build ID: 02bee5f5d846f40f244c5acab044177576a6d869
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win;
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-02_21:57:08
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded
Version: 6.2.4.2 (x64)
Build ID: 2412653d852ce75f65fbfa83fb7e7b669a126d64
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win;
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>