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 2023/07/19 15:27:45 UTC

[Bug 66705] New: Slide Transitions not working XSLF Slide

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

            Bug ID: 66705
           Summary: Slide Transitions not working XSLF Slide
           Product: POI
           Version: unspecified
          Hardware: Macintosh
                OS: Mac OS X 10.1
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: eric.mayhew@gmail.com
  Target Milestone: ---

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.

Eric

-- 
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


[Bug 66705] Slide Transitions not working XSLF Slide

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66705

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|Macintosh                   |All
                 OS|Mac OS X 10.1               |All

-- 
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