Description: Having a LibreOffice Writer document which includes pictures as well as an .odt file (embedded, not linked) When I export the document to HTML the HTML file gets created along with the embedded pictures. But the embedded ODT doesn't get exorted (and represented by a link inside the main HTML). Not tested yet: I believe this is the behavior for all binaries aside known picture file formats. Steps to Reproduce: 1. create an ODT (Master) 2. embed another ODT (Slave) (OLE, as Icon, NOT as link) 3. export the Master to HTML Actual Results: the embedded ODT (Slave) doesn't get exported altough it's stored in Master's package Expected Results: the embedded ODT (Slave) should have been exported and linked inside the Master HTML Reproducible: Always User Profile Reset: No Additional Info: I'm pretty sure, resetting the profile wouldn't change a thing since In tested this on multiple PCs running different operating systems ^^ Added a picture to the example Master to show the difference.
Created attachment 196103 [details] the ODT Master including the embedded Slave
Created attachment 196104 [details] the export to HTML (zipped) of the Master
A private message was relayed to me saying you can create design drafts for this. Feel free to attach any such proposals to this report.
Hi all, did some more detailed testing and found the whole topic to be much more complicated. ^^ Since there's a limitation coming with OLE anyway, I further focus on OLE objects only. (From my POV it would be nice to be able to just embed any file type by a simple way. Parsing in any way is not required to just "collect" resources into an ODF.) About the initial report... Whenever an object gets inserted via OLE it is stored in the package. Whenever a picture is (displayed) in the document it is stored in the package. Once you export the ODF to HTML the pictures get saved separately (exported from the package) and the HTML get the required <img> tags. This img tags are already getting created for placeolder icon for embedded object. I recommend to just also export all OLE Objects embedded "as icon" as well + create links (href) inside the HTML. This should be done regardless the actual file type. How it should work: 1 - Have an ODT (or ODF at all) including displayed images and files embedded (not linked) as symbol. 2 - Save as HTML 3 - This creates a HTML + the image files (as for now) + stores all the OLE embedded separately to ther original file types + updates the links within the HTML to point on this exported files Hope, this was some kind of comprehensible. ^^
(In reply to Jens Schwartz from comment #4) > I recommend to just also export all OLE Objects embedded "as icon" as well + > create links (href) inside the HTML. Although using HTML to share formatted text (odt) makes not much sense, the embedded objects should not get lost. And the proposal sounds reasonable.