There are major issues with OLE objects and DOC/DOCX files (exporting and importing drawing for example).
When saving ODT file to DOC/DOCX it would be very good to add possibility to "export" OLE objects as a picture (PNG or JPEG).
OLE supports embedding of the 'Preview' picture into 'Summary Information' stream of the container. Using it could be a better option.
What do you think?
Created attachment 64177 [details]
ODT file with ole objects
Created attachment 64178 [details]
doc file exported from ole.odt
Created attachment 64179 [details]
docx file exported from ole.odt
If we look deeper at the attachments we see:
* ole.doc looks quite ok. There are only some other issues (error in rasterization of drawing and wrong layout)
* ole.docx, there only the equation is shown ok. Everything else is empty.
For such case image should be exported to docx. Or at least "Preview" picture appended. Maybe this is a bug?
"Preview" picture for most cases could be OK. But hard to say...
Somewhere should be possible to adjust parameters of rasterization maybe.
Missed parts of the drawing is a bug (or bugs).
'Export as a picture' doesn't sound as a good solution (unless it's optional).
If you export as a picture receiver would lose any benefits embedded object can provide (including upscale w/o quality degradation).
On another hand if you embed some object for which receiver doesn't have an application to render, then it would be lost completely.
For such cases MSO can use a preview image if one is provided in 'Summary Information'. I don't think there are technical limitations on the quality of the inserted 'preview'.
I think you can shape this enhancement request and open another one as a bug; or convert this one into bug and open another one as a feature request.
Feature could be solved with creating an extension (rasterize all graphics for example) in other ticket. If even anybody will need it.
Main problem of this ticket is:
When exporting to DOCX, OLE objects lost the preview pictures. Especially drawing, charts.
If we compare file size of doc and docx files we see that docx lost the preview pictures.
As preview picture exist in DOC file, the problem lies in DOCX exporter.
(Error on opening --> Repairing; complains about Incompatibility with MS Word and provides a link to a converter)
Evewrything but Formula --> Drawing is Picture
Using Version 184.108.40.206.alpha0+ (Build ID: 74f74aa5470fe631c7827897742c0ccbddcf6ad)
TinderBox: Win-x86@6, Branch:master, Time: 2013-02-23_23:21:01 and MS Word 2010
Created attachment 75520 [details]
My 2 test files
This bug looks strange to me. You mean, if OLE is not present, to add at least picture? That's not how LO should work.
Seems like DOCX has some issues, although there was an improvement.
DOC is fine, but that should be a separate bug anyway.
Please test with LO 5.3 beta and 5.4. master and report back. You can get http://tdf.io/siguiexe to run parallel LO (extract without installation).
I'd recommend this one be closed and clean new bug report created.
Created attachment 130945 [details]
Difference between older docx and docx produced with LibreOffice 220.127.116.11
Version 5.3 is better. See last attachment.
The original idea of this ticket is also written here:
Quote: Similarly to the SVG feature, the original vector image is stored in the document, but when saving to ODF, a replacement PNG file is also generated to be backwards compatible with older ODF readers. The image context menu → Save menu item allows to extract your original PDF data from the image, too:
DOCX with 6.2+:
Drawing is not correct in LO reopen, DOCX cannot be open in MSO
DOC with 6.2+:
Drawing is not correct in LO reopen, it's object in MSO reopen, sheet preview not correct in MSO.
Similar 6.3+. Rename to just Drawing OLE.