File created with LO cannot be opened with either Word 2013 [Windows 7] or Apple Pages [OSX 10.11.4] LibreOffice as no trouble opening either the original ODT or the exported DOCX As a work-around, I was able to export the document to .DOC format, and that export opened without complaint. This issue may duplicate Bug 95546 I'm going to attempt to generate a short example document - it may be tied to an 'ole' style included object. [Visio document, the LO draw did not open with fidelity to the original]
Hello, Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document. (Please note that the attachment will be public, remove any sensitive information before attaching it.) How can I eliminate confidential data from a sample document? https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F Thank you
Created attachment 124091 [details] Sanitized ODT source document Sanitized version of source document [embedded Visio file same as original]
Created attachment 124093 [details] Exported DOCX from sanitized sample This document was exported using LO on OSX [where Pages refused to open it] On Win 7, Word 2013 refused to open it [Details; Unspecified Error; Location: Part: /word/document.xml, Line 2, Column 0] LO on Win 7 opened it - visually identical to the Mac
OSX 10.11.4 + Word 15 complaining about an "unspecified error" and will not open docx test file. LO opens the file → new.
Created attachment 124278 [details] Shorter example If a table is followed by a paragraph with "page break before" the export creates something like: </w:tbl> <w:r><w:br w:type="page"/></w:r> <w:p><w:pPr><w:pStyle w:val="Heading1"/> This <w:r></w:r> without a paragraph around it is not allowed.
The code that writes the run outside of a paragraph came in with c916152d8562cab868d4c522748ac30029fad179 Author: Miklos Vajna <vmiklos@collabora.co.uk> Date: Mon Sep 21 07:31:33 2015 +0200 tdf#92521 DOCX export: handle section break right after a table
Created attachment 125966 [details] another example document An interesting workaround is to open the corrupt document in LO and save it again. The second time it opens in Word. Another workaround (in MSWord) is to replace the PageBreak with a SectionPageBreak. The examples open just fine in WordPad. Confirmed that they are reported as corrupt in Word 2003 and 2013.
proposed fix: https://gerrit.libreoffice.org/#/c/26771/
Justin Luth committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=07fb94655f4745eb4e80bf6e8d4cdd95371f23bb tdf#99090 docx export page-break only inside a paragraph It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=28ded9c98837d6b6eefff73f396353b61b6b4017&h=libreoffice-5-1 tdf#99090 docx export page-break only inside a paragraph It will be available in 5.1.5. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-5-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=620c00bf2279ccedf3fadefecc68186e25827b59&h=libreoffice-5-2 tdf#99090 docx export page-break only inside a paragraph It will be available in 5.2.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
This is not a duplicate of bug 95546