SetPageTransition

Page properties, page layout

Description

Please review the syntax, parameters, and return value before calling the function.

Syntax

Function TPDFlib.SetPageTransition(Page: Integer; Transition: TPDFlibPageTransition; Duration, TransDuration: Double): Integer;

Parameters

PageOne-based page number; values below 1 are rejected
TransitionLegacy effect constant: ptNone, ptSplitHIn, ptSplitHOut, ptSplitVIn, ptSplitVOut, ptBlindsH, ptBlindsV, ptBoxIn, ptBoxOut, ptWipeLeftRight, ptWipeRightLeft, ptWipeTopBottom, ptWipeBottomTop, ptDissolve, ptGlitterLeftRight, ptGlitterTopBottom or ptGlitterDiagonal
DurationPage display duration in seconds; a negative value rejects the call
TransDurationTransition effect duration in seconds; a negative value rejects the call

Return values

1The transition and page duration were written
0No document is selected, the page number is invalid or a duration is negative

Remarks

Wipe and Glitter directions are stored in /Di, ptNone clears both /Trans and page-level /Dur, and these standard styles do not force PDF 1.5

Use SetPageTransitionEx for replacement, Fly, Push, Cover, Uncover, Fade, scale and rectangular Fly options

See also

SetPageTransitionEx, GetPageTransition