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

            Bug ID: 170427
           Summary: FILESAVE DOCX: corrupt document reported by MS Word -
                    related to v:shape
           Product: LibreOffice
           Version: 4.4 all versions
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bisected, filter:docx
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
        Depends on: 166335
            Blocks: 104840

Created attachment 205122
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205122&action=edit
forum-mso-en-2543.docx: example document

When this document is round-tripped by LO, the resulting file is reported as
corrupt by MS Word.

Steps to reproduce
-open forum-mso-en-2543.docx in LO and re-save it
-try to open the document in MS Word. It complains.

It actually complained about several things. GluePoint fmla was solved in bug
166335, and there might have been several other related fixes, so using LO 26.8
is basically a necessity for this particular document.

One remaining problem appears to be with a v:shape fallback entry.

A bibisect pointed to commit d379d18666aa42031359ca8eb34b0021960347ae
Author: Miklos Vajna on Wed Jun 18 12:09:15 2014 +0200
    oox: import WPS shape with text as shape with textbox
which drastically changed how shapes were handled. That doesn't help much. It
basically just tells us that the problem is related to shape/textframes.

I'm not sure I was successful in identifying a specific problem here. I can
'fix' the document by removing 'position:absolute' from:

<v:shape id="shape_0" stroked="t" o:allowincell="f"
style="position:absolute;margin-left:0pt;margin-top:-232.1pt;width:357.65pt;height:216.85pt;mso-wrap-style:none;v-text-anchor:middle;mso-position-vertical:top"
wp14:anchorId="2C2E3648" type="_x0000_t75">

However, MS Word doesn't show the picture at all, and I've the removal of
position:absolute 'fix' other random problems, so I assume it is just a
side-effect.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104840
[Bug 104840] [META] Saved DOC files that MS Word can't open
https://bugs.documentfoundation.org/show_bug.cgi?id=166335
[Bug 166335] FILESAVE DOCX Word fails to open roundtripped document (issue with
shape guides/glue points)
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to