Apache OpenOffice (AOO) Bugzilla – Issue 96910
Docx Fail to extract Embedded Objects via UNO
Last modified: 2017-05-20 10:11:35 UTC
I have some code that extracts OLE objects from MS Office documents. This works fine for .doc files, but not for docx. The prblem occurs as the element names are not retrieved. Consider: XTextEmbeddedObjectsSupplier oTSSupp = (XTextEmbeddedObjectsSupplier)UnoRuntime.queryInterface( XTextEmbeddedObjectsSupplier.class, document ); XNameAccess access = oTSSupp.getEmbeddedObjects(); String[] names = access.getElementNames(); where msf is an XMultiServiceFactory instance and document is a XTextDocument instance. When run on the attached docx file, the names array contains only a single element that's zero length. This causes the subsequent extraction code to fail with a com.sun.star.lang.IllegalArgumentException when creating the storage.
Created attachment 58520 [details] File containing embedded object
Not a P1. @JSK: please, take over.
Any idea for target milestone as this is an important bug for our customers?
API stuff -> CN, proposed target 3.1 if resources permit.
cn->tl: for you
Not time left to fix this one in OO0 3.1 because of other issues.
Oliver, please check if this is a problem in the docx import
Target changed to 3.x
Still broken in oo 3.2
Still broken in 3.3. Note although the original bug is described in terms on the UNO API, it impacts the document view as the OLE objects are not visible. Such objects ARE visible in XLSX files.
Please specify steps to reproduce bug.
No info from author.