Hi Nilez, coincidentally I've provided a similar topic (XSSF ole object inside XSLF) yesterday evening [1]. It will take some time to try it myself, but based on my experience from [1] I can answer you the following:
@1) embedded objects aren't always stored in the same way, as you've already noticed. The SO entry is about a packager object [2], which is represented as Ole10Native - this can contain any filetype - think of it as an archive inside a office document. What you seem to want is embedding ole objects and showing their contents. AFAIK every OLE container (PDF application, ...) can define their own structured OLE document and therefore the oleObjectX.bins differ. It is even not necessary that it is included as oleObject, but can be also a OOXML zip - I guess it depends, how you inserted the objects (drag&drop / insert object / ...) into the parent document ... @2) ... trial and error @3) it depends ... in [1] there's an example method in EmbedXSSFinXSLF.fillOleData which creates an Excel oleObject. So I use a POIFSFilesystem having only a "Package" entry, which is XSSFWorkbook. To find out which poifs entries you need, simply take a working embedded document and strip its entries down - usually you can ignore "CompObj" which is only a clipboard representation In any case, you will always have the problem of providing the preview image ... apart of embedding PPT/X, POI doesn't offer you a preview mechanism. Best wishes, Andi [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=61797 [2] https://stackoverflow.com/questions/40382369 -- Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
