You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/01/02 22:14:14 UTC

[Bug 58325] getShapes() returns zero if sheet has more than one embedded OLE object

https://bz.apache.org/bugzilla/show_bug.cgi?id=58325

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Some initial analysis:
* Usually shapes are stored in elements of <xdr:twoCellAnchor editAs="oneCell">
* The provided document with multiple shapes uses some VML/DrawingML
compatibility structure via an "AlternateContent" structure:
<mc:AlternateContent
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <mc:Choice Requires="a14"
xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">
      <xdr:twoCellAnchor editAs="oneCell">

So in order to support these types of documents, we would need to add support
for the alternate content section, however the version of the XML Schema that
we use does not seem to have these. See also the spec at 2.17.4 "Roundtripping
Alternate Content" in the spec "WordprocessingML Reference Material" for some
related description.

I have added a disabled unit test in r1722665 which can be used as reproducer.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org