Hi everyone,
I want to get the animations from a ppt file, so I tried to use the
AnimationInfo
and AnimationInfoAtom classes in the following ways :
- At the slide level (with a slide appearing with a translation) :
org.apache.poi.hslf.record.Slide sRecord = slide.getSlideRecord();
AnimationInfo animInfo = (AnimationInfo)
sRecord.findFirstOfType(RecordTypes.AnimationInfo.typeID);
if (animInfo!=null)
{
...
- At the shape level (shape participating in an animation) with the
following code :
EscherContainerRecord container = _shape.getSpContainer();
if (container!=null)
{
ArrayList<AnimationInfo> lAnimInfo = new ArrayList<AnimationInfo>();
container.getRecordsById((short) RecordTypes.AnimationInfo.typeID,
lAnimInfo);
if (lAnimInfo.size() != 0)
{
AnimationInfo animContainer = lAnimInfo.get(0);
...
In both case, I can't get neither AnimationInfo nor AnimationInfoArom objet
(every time it's null).
Do you have any example of AnimationInfo usage ?
Thanks for the help.
Alex.
--
View this message in context:
http://www.nabble.com/PPT-animations-tp20755802p20755802.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]