Bug 66705 - Slide Transitions not working XSLF Slide
Summary: Slide Transitions not working XSLF Slide
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: unspecified
Hardware: All All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2023-07-19 15:27 UTC by Eric Mayhew
Modified: 2023-08-01 20:51 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Mayhew 2023-07-19 15:27:45 UTC
I'm attempting to use POI to manage slide transitions.

Using this:

> final XSLFSlide slide;
> slide.getXmlObject().getTransition();

Always returns null, even when I know my slide has a transition in it.

I notice this in my VALID (source) PPT XML:

> <xml-fragment>
> 	<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
> 		<mc:Choice xmlns:p159="http://schemas.microsoft.com/office/powerpoint/2015/09/main" Requires="p159">
> 			<p:transition advTm="17500" spd="slow">
> 				<p159:morph option="byObject"/>
> 			</p:transition>
> 		</mc:Choice>
> 		<mc:Fallback>
> 			<p:transition advTm="17500" spd="slow">
> 				<p:fade/>
> 			</p:transition>
> 		</mc:Fallback>
> 	</mc:AlternateContent>
> </xml-fragment>

When I use POI to add a transition, it adds this as a node:

> slide.getXmlObject().addNewTransition().setAdvTm(1000);

> <xml-fragment><p:transition advTm="17000"/></xml-fragment>

PPT reads is as corrupted, has to repair it, and it loses it.

I believe the format has changed and I could use help navigating it. I was hoping you could help me either work around it or show me what I'm doing wrong.