Summary: | Error when opening DOCX after saving with captions on images | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Mouse Y. <youngk6pcm> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | aron.budea, kelemeng, youngk6pcm |
Priority: | medium | Keywords: | filter:docx |
Version: | 4.1.0.4 release | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 104448, 104450 | ||
Attachments: |
This is the Word OOXML file that has been trouble.
This the "Confirmation" error dialog box that appears. 1 page DOCX 149798 Logic 1p.pdf: How it looks in LO 7.6+ (notice extra spacing in cell height) |
Description
Mouse Y.
2022-07-01 06:22:53 UTC
Created attachment 181050 [details]
This is the Word OOXML file that has been trouble.
Created attachment 181051 [details]
This the "Confirmation" error dialog box that appears.
Repro using Version: 7.3.4.2 (x64) / LibreOffice Community Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5 CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL Created attachment 181139 [details] 1 page DOCX (In reply to Mouse Y. from comment #0) > 2. Scroll down until you find a table that has this text field inside of it. > The first one you'll find is on page 6. > 3. Type something in those text fields. Well, it's not so simple. These are not text fields at all. They are pictures in MSO. So text cannot be entered there. Adding text in LO is setting caption. And that's what creates a problem in LO, MSO cannot open saved file at all. An error occurred during opening the file in LO: SAXException: [word/document.xml line 20]: Namespace prefix pic on bodyPr is not defined Since it's 16 pages DOCX, I attach here 1 page created in MSO. LO anchors "As Char" so fileopen doesn't look nice. There are other bugs on this. With LO 3.6, text wasn't saved properly but file could be opened. With 4.1 and 7.5+ error in LO and MSO cannot open. (In reply to Timur from comment #4) > (In reply to Mouse Y. from comment #0) > > 2. Scroll down until you find a table that has this text field inside of it. > > The first one you'll find is on page 6. > > 3. Type something in those text fields. > > Well, it's not so simple. These are not text fields at all. They are > pictures in MSO. So text cannot be entered there. Really? Well, I never tested this file in MS Word, so I'll take your word for it. > Adding text in LO is setting caption. And that's what creates a problem in > LO, MSO cannot open saved file at all. That's actually pretty interesting. I just now looked at those alleged text fields in both your file and in my original one in LibreOffice, and yes, they are in fact images. I looked further into it, and now I'm thinking they are AutoShapes (or just a Basic Shape in LibreOffice) or something like them because I could still add text to the center of them, just like an AutoShape. How I was able to type text in those things was through double-clicking the shape, then a text cursor appeared and I was able to type something in there. In any case, LibreOffice seems to treat the text as a caption. Good to know! I cannot reproduce opening errors, either on the original file or after LO round-trips it. Tested with LO 7.6, 7.3.8, and 7.2.0 as well as MSO 2010. Created attachment 187663 [details]
149798 Logic 1p.pdf: How it looks in LO 7.6+ (notice extra spacing in cell height)
Actionable item: the whatever-shapes have an extra border space. (Wrap - edit - bottom border).
I wonder if there is some very old legacy issue here, because MS Word honours that space on the round-tripped file, but any edit of the object using MS Word throws it out.
Note: Using MS Word 2010 on the original "149798 Logic 1p.docx", when I right-click on one of these shapes, my only edit action is "Edit picture", which prompts "This is an imported picture, not a group. Do you want to convert it to a Microsoft Office drawing object?"
|