Apache OpenOffice (AOO) Bugzilla – Issue 72924
Export-XHTML: Known OLE Objects are not traversed
Last modified: 2007-01-23 11:21:12 UTC
If one creates a Write document with an embedded Draw document, then exports to XHTML, the embedded objects are skipped in the output. Example: 1) Create a new Draw document and put in a simple shape like a single circle. 2) Save to 'theDrawFile.odg' and Close Draw. 3) Create a new Write document and put in some random text. 4) Go to Insert->Object...->OLE Object and select 'theDrawFile.odg' with "create from file" as a link. 5) Now export the Write document (now with the embedded Draw object) to XHTML. You'll notice the export filter didn't traverse the hierarchy and cause the known subdocument to be exported as well. But I can just open the resulting XHTML into a text editor and add the missing <embed> tag. An example would be: <embed src="theDrawFile.svg" height="300" width="600" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" /> Next, open the 'theDrawFile.odg' in Draw and export to SVG. There, done. A per Object property to stipulate the type of traversal would be nice.
OOo uses "XHTML 1.0 Strict" and "embed" is not a valid element there. "theDrawFile.odg" and "theDrawFile.svg" are not the same. Do you want, that linked OLE OOo files are exported as object-element?
I'd like the sub document to be exported (in some manner), too. Whether the sub document is exported to a PNG, or GIF would be fine as well.
> "theDrawFile.odg" and "theDrawFile.svg" are not the same. Of course they aren't the same, the sub document wasn't exported when the main document it was linked into was.
Created attachment 41702 [details] an example using the <object> tag
Created attachment 41703 [details] svg image
In essence, this bug post is to draw attention to how OLE objects in write documents are ignored when a document is exported to XHTML even though it knows of OOo's own data types and *could* generate something. I'm not well versed in the source, but looks like the culprit might be in DrawConverter::handleDrawImage() of writer2latex/java/writer2latex/xhtml/DrawConverter.java where the linked object (itself?) is ignored, if I'm reading the code correctly. Extending this to a per-OLEobject datum to stipulate the type of exportation of each embedded OLE object would be wonderful. IOW, when I export my top Write document that contains a number of Draw objects, the ability to specify what type of export (PNG, GIF, or embedded SVN, etc..) would be marvelous. SVN can even be placed whole in the output rather than linked. See http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ example here: http://www.pobox.com/~davygrvy/kc/test2.xhtml
Reassigned to JSI.
Already a known limitation. #22012 *** This issue has been marked as a duplicate of 22012 ***
Changing components, platform....
closing issue, embedded objects (images, OLE, ...) can not be exported by XSLT filters. This limitation is known but there is no ongoing work at this AFAIK because of API limitations.
If this issue can't be fixed due to API problems, why was this ticket closed?
@reporter: because it's set to duplicate.