poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Beeker <kiwiwi...@apache.org>
Subject Re: SVG image support in XSLF
Date Sun, 06 May 2018 10:02:06 GMT
Hi Ritesh,

generating the png thumbnails should be possible with Batik [1].

Adding those extension elements should be possible via the XSLFShape.getXmlObject() method.
If the xmlschema doesn't provide you with the accessors, you need to use a XmlCursor [2]
to add the elements.

When using those features, Office usually uses AlternateContent elements, to provide additionally
a fallback structure. You don't need to provide the AlternateContent wrapper but insert
either the choice or fallback element directly.

If you intend to read and then modify files (template approach), please make sure to use a
trunk version of POI,
as I've included an additional schema for handling AlternateContents ... otherwise those
elements are ignored (... sometimes).

Andi


[1] https://xmlgraphics.apache.org/batik/
[2] https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java?view=markup#l281



Mime
View raw message