Description: When I export documents from ODT to XLSX or RTF, I see a lot of corruption of embedded images. Steps to Reproduce: When I embed images in my documents, I usually just caption them, change the size and often anchor them “as character”, in order to put several images in one line with a few spaces of distance in between. The document needs to be exported and reopened for the corruption taking effect. Actual Results: All my captioned images get either displaced and overlapped (XLSX) or get lost entirely (RTF). Expected Results: Well, I expect those images to stay the same of course. Reproducible: Always User Profile Reset: No Additional Info: I can’t upload my confidential documents, but I try to upload some screen shots, so that you see what I mean.
Created attachment 150852 [details] Original ODT document
Created attachment 150853 [details] Document exportet as XLSX
Created attachment 150854 [details] Document exported as RTF
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
Dear zyklon87, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Created attachment 155680 [details] New document (original odt)
Created attachment 155681 [details] New document (exported docx)
I created and uploaded a new document. When I just insert the images without captions, the “anchoring as text with spaces in beetween” breaks for the second row. When I additionally add captions to all images: * In docx: - The spacing between the first image and the text gets lost - the manual spaces between images 2 and 3 get lost, additionall, the spacing between these two images and the text line above gets shrinked. * In rtf: - The output file gets a size of 67 MB, whereas the source has 2 MB - All images get lost - The caption of the first image is shown left of the image placeholder instead of below - The image placeholders 2 and 3 look stacked on top of each other.
Created attachment 155682 [details] New document (screen shot odt)
Created attachment 155683 [details] New document (screen shot rtf)
Created attachment 155684 [details] New document (screen shot docx)
* Done with LibreOffice 6.3.3.2 a64200df03143b798afd1ec74a12ab50359878ed (Flatpak)
I confirm it with Version: 6.4.0.0.alpha1 (x64) Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787 CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; Locale: de-DE (de_DE); UI-Language: en-US Calc: threaded If I open RTF in Word 2016, it looks better, but not good. When I compare the settings, I could find, that Wrap-Settings of images in odt are "None" and in docx "Optimal". Don't know, if this causes the difference I assume, that the bug in rtf-file is different. So perhaps it would be good to slit this bug into two different bug reports.
The two frames at the bottom of attachment 155680 [details] are anchored as character and have 0.3 cm spacing in all four directions. When exported to docx the spacing setting is lost, so they stick together. This happens because in Word shapes that are anchored as character cannot have a spacing setting, only shapes anchored as any other type.
Dear Frank Brütting, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Retested with Version: 7.5.3.2 (X86_64) / LibreOffice Community Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded Still present in rtf-document 1. Open attachment 150852 [details] 2. Save as RTF and reload Actual problems: Image 2 and image 3 overlap Captions of all 3 images disappear Still present in docx-document 1. Open attachment 150852 [details] 2. Save as docx 3. Open in Word or MS Office 365 Actual problem First image is now left from the text (instead of right).
LO opens the round-tripped file the same way that MS Word opens it. (That is the important part). Exporting the "distance to text" spacing is not possible - an MS format limitation. (Well, at least using the DOCX frame choices we have made. See bug 154703.) I believe the concern about the order of the exported as-char-frames is valid. The bottom two captions are "as character" and come before a short string of spaces. On export, the string of spaces is first, followed by the two captioned images. I tested by placing a "x" as the first character in the paragraph (before the captions) and a y after all of the spaces. The DOCX export resulted in x......y<image1><image2> Note that DOC exports the order just fine. History: -OOo didn't export to DOCX -at first LO exported this as to-character, but EVERYTHING looked perfect in 4.3 (although MS Word imported at the end - so obviously already broken). -broken at import time during transition to using draw frames in 4.4 commit d379d18666aa42031359ca8eb34b0021960347ae. The export changed in 4.3's commit 8a0fc37a3714752b764d9d9b752913734412d46c Author: Miklos Vajna on Wed Dec 11 16:08:52 2013 +0100 DOCX textframe export: when in experimental mode, use DML instead of VML
Created attachment 187650 [details] 124821_inlineImage.docx: homemade minimal reproducer
Upgrading to high. This is fairly serious (although limited in scope). It appears to be a problem in the transition from an SW frame to an EE frame. (Once the EE frame is properly placed, it round-trips OK).
So far I have a fix that works FOR MS WORD, but LO is not importing it... https://gerrit.libreoffice.org/c/core/+/167967 NFC docxattributes: make writeDMLAndVMLTextbox() https://gerrit.libreoffice.org/c/core/+/167968 docx export: don't postpone AS_CHAR eTextBox until end of paragraph
Created attachment 194383 [details] ooo96040-2C.odt: the part of ooxmlexport5 that is giving me grief: creates corrupt DOCX
(In reply to Justin L from comment #21) > creates corrupt DOCX MS Word 2003 refuses to open it at all. MS Word 2010 says "You cannot put drawing objects into a textbox..."