Aspose.Pdf

Set Page Transition Effect

Aspose.Pdf allows you to set the Page Transition Effect for the PDF document which may be useful for presentations or slide shows. Page Transition Effects are achieved using the fixed set of values in PageTransitionType enumeration.

 

It is always a two step process:

 

 

The pre-defined values of PageTransitionType enumeration are given below:

 

Values

Description

None

No transition

Split

Two lines sweep across the screen

Blinds

Multiple lines,evenly spaced across the screen,synchronously sweep in the same direction

Box

A rectangular box sweeps inward from the edges of the page or outward from the center

Wipe

A single line sweeps across the screen from one edge to the other

Dissolve

The old page dissolves gradually

Glitter

Similar to Dissolve except that the effect sweeps across the page in a wide band moving from one side of the screen to the other

Replace

The new page simply replaces the old one with no special transition effect

 

Code Snippet

 

[C#]

 

//Instantiate Pdf instance

Pdf pdf1 = new Pdf();

 

//You may set OpenType poperty to full screen

pdf1.OpenType = OpenType.FullScreen;

 

//Set PageTransitionType poperty of Pdf instance to a pre-defined desired value

pdf1.PageTransitionType = PageTransitionType.Dissolve;

...

 

[VB.NET]

 

'Instantiate Pdf instance

Dim pdf1 As Pdf = New Pdf()

 

'You may set OpenType poperty to full screen

pdf1.OpenType = OpenType.FullScreen

 

'Set PageTransitionType poperty of Pdf instance to a pre-defined desired value

pdf1.PageTransitionType = PageTransitionType.Dissolve

...

 

[JAVA]

 

//Instantiate Pdf instance

Pdf pdf1 = new Pdf();

 

//You may set OpenType poperty to full screen

pdf1.setOpenType(OpenType.FullScreen);

 

//Set PageTransitionType poperty of Pdf instance to a pre-defined desired value

pdf1.setPageTransition(PageTransitionType.Dissolve);

...

 

[XML]

 

<Pdf xmlns="Aspose.Pdf" OpenType="FullScreen"

         PageTransitionType="Dissolve">

...

</Pdf>